js 验证字符串是否全为中文:
function isChinese(str) { var reg = /^[u4E00-u9FA5]+$/; if(reg.test(str)){ return true; }else{ return false; } }