判断输入是否为中文的函数

function ischinese(s){
var ret=true;
for(var i=0;i

1<s.length;i++) &&="" (s.charcodeat(i)="" ret="ret">=10000);   
2return ret;   
3}</s.length;i++)>
Published At
Categories with Web编程
Tagged with
comments powered by Disqus