This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 测试密码强度 | |
* | |
* 1.密码长度为[6-16]位,可以包含数字、字母、特殊符号 | |
* 2.当密码含有一种类型(数字、字母、特殊符号),且长度小于8时,强度为弱;长度大于8时强度为中; | |
* 3.当密码含有一种类型(数字、字母、特殊符号),且长度小于8时,强度为弱;长度大于8时强度为中; | |
*/ | |
function verifyPassword(val){ | |
val = val.trim(); |