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