任何使用jQuery检查密码强度的好插件
问题描述:
每次按键时,如何检查密码的真实性.有插件吗?
At every keypress, how do I check the srength of a password. Any plugins?
答
http://www.webdesignerdepot.com/2012/01/password-strength-verification-with-jquery/ [ http://gazpo.com/2012/04/password-strength/ [
http://www.webdesignerdepot.com/2012/01/password-strength-verification-with-jquery/[^]
http://gazpo.com/2012/04/password-strength/[^]
在文件下面下载
http://jquery-pwdstr.googlecode.com/files/jquery.pwdstr-1.0. source.js [ ^ ]
download below file
http://jquery-pwdstr.googlecode.com/files/jquery.pwdstr-1.0.source.js[^]
var strength = 1;
var arr = [/{5\,}/, /[a-z]+/, /[0-9]+/, /[A-Z]+/];
jQuery.each(arr, function(i, regexp) {
if(this.value.match(regexp))
strength++;
});