任何使用jQuery检查密码强度的好插件 [英] Any good plugin for checking password strength using jQuery
本文介绍了任何使用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++;
});
这篇关于任何使用jQuery检查密码强度的好插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文