function CheckChinese(val){ var reg = new RegExp("[\\u4E00-\\u9FFF]+","g"); if(reg.test(val)){alert("包含汉字!"); } }