包含汉字的判断
var obj = document.form1.txtName.value; if (/.*[\u4e00-\u9fa5]+.*$/.test(obj)) { alert("不能含有汉字!"); return false; }
更新列表:
*
参考文章: