js判断中文

var reg = /^[u4E00-u9FA5]+$/;
if(!reg.test(keywordscn)){
alert('请填写中文')
return false;
}
原文地址:https://www.cnblogs.com/hellozg/p/6232728.html