摘要: 1 /* 2 验证中文字符串 3 输入: 4 text: 验证字符串 5 minLen: 最小合法长度 6 maxLen: 最大合法长度 7 返回: 8 true:合法/false:不合法 9 */ 10 function checkChaText(text,minLen,maxLen) 11 { 12 var reg = eval("/^[\\u4E00-\\u9FA5]{" + minLen + "," + maxLen + "}$/"); 13 if(!reg.test(text)) { 14 r... 阅读全文
posted @ 2013-03-23 16:43 艾布拉布斯 阅读(379) 评论(0) 推荐(0) 编辑