2016年6月26日
摘要: http://blog.bigbinary.com/2010/03/31/regular-expressions-in-JavaScript.html ( ) [ ] { } . * ^ $ + ? \ ( ) [ ] { } . * ^ $ + ? \ ( ) [ ] { } . * ^ $ + 阅读全文
posted @ 2016-06-26 10:22 jayruan 阅读(154) 评论(0) 推荐(0)
摘要: /校验用户名:只能输入1-30个字母 function isTrueName(s) { var patrn=/^[a-zA-Z]{1,30}$/; if (!patrn.exec(s)) return false return true } //校验密码:只能输入6-20个字母、数字、下划线 fun 阅读全文
posted @ 2016-06-26 09:40 jayruan 阅读(464) 评论(0) 推荐(0)