用正则表达式来判断是最好的方法:if(/[^\x00-\xff]/g.test(str)) alert("含有汉字"); else alert("全是非汉字的字符");
用正则表达式判断写一个正则,然后 调用test方法
上甲壳虫技术论坛看下吧。。