http://chenjilv.blog.163.com/blog/static/21037586200921911817637/
http://www.sucai.com/Tech/List2/17355.htm
http://hi.baidu.com/fan8888/blog/item/b26bc23279eee944ac4b5f34.html
http://www.powerall.cn/Design/Pages/2009/1211/34979.html
1.
function funcChina(s){
if(^[u4e00-u9fa5]+$.test(s))
{
return false;
}
alert(含有汉字!);
return true;
}
funcChina('kk3看k')
2.
s = kk3看k;s='33'
if([^x00-xff]g.test(s))
alert(含有汉字);
else
alert(全是字符);
3. http://zhidao.baidu.com/question/67924300.html
var s = "中文";
var m = /^[0-9\u4e00-\u9faf]+$/;
var flag = m.test(s);
if(flag){
alert("全是中文!");
}
alert("全是中文!");
}