摘要: 1 用户名正则 //用户名正则,4到16位(字母,数字,下划线,减号) var uPattern = /^[a-zA-Z0-9_-]{4,16}$/; //输出 true console.log(uPattern.test("iFat3")); 2 密码强度正则 //密码强度正则,最少6位,包括至少 阅读全文
posted @ 2017-06-12 15:04 小僵尸 阅读(201) 评论(1) 推荐(0) 编辑