// Check whether it is Chinesefunction isChn(str){ var reg = /^[u4E00-u9FA5]+$/; if(!(str)){ return false; } return true; }