1 function ischinese(s){ 2 var ret = true ; 3 for ( var i = 0 ;i < s.length;i ++ ) 4 ret = ret && (s.charCodeAt(i) >= 10000 ); 5 return ret; 6 }