Js to determine whether the input is Chinese function
- 2020-03-30 02:21:50
- OfStack
Examples are as follows:
function ischinese(s){
var ret=true;
for(var i=0;i<s.length;i++)
ret=ret && (s.charCodeAt(i)>=10000);
return ret;
}