password-checker

Password Strength Meter

旧巷老猫 提交于 2019-12-02 20:02:41
问题 I'm trying to create my own JS Password Strength Meter. It was working before but i didn't like how it worked so I tried using {score +=10;} Instead of just: score++ This is my code: http://jsfiddle.net/RSq4L/ Best Regards, Shawn, Hope someone can help 回答1: Multiple issues: Your passwordStrength() function was not defined in the global scope in the jsFiddle so it wasn't getting called. This is probably an artifact of how you set up the jsFiddle, perhaps not an issue in your real code. The

Password Strength Meter

风格不统一 提交于 2019-12-02 09:15:16
I'm trying to create my own JS Password Strength Meter. It was working before but i didn't like how it worked so I tried using {score +=10;} Instead of just: score++ This is my code: http://jsfiddle.net/RSq4L/ Best Regards, Shawn, Hope someone can help Multiple issues: Your passwordStrength() function was not defined in the global scope in the jsFiddle so it wasn't getting called. This is probably an artifact of how you set up the jsFiddle, perhaps not an issue in your real code. The method of getting the appropriate ratingMsg will not work because you don't have array values for every