摘要: js验证包含中文,字母,数字,下划线还有横杠var flag = false; var pattern = "`!@#$^&=|{}':;',.%/?!*@#¥……;—|{}‘;:”“'。,、?"; for (var i = 0; i < value.length; i++) { if (pattern.indexOf(value.substr(i, 1)) != -1) { flag = true; break; } } if (fl... 阅读全文
posted @ 2013-07-13 11:17 wfpanskxin 阅读(204) 评论(0) 推荐(0) 编辑