匹配中文字符的正则表达式: [\u4e00-\u9fa5]
<script>
function isChinese(temp)
{
var re = /[^\u4e00-\u9fa5]/;
if(re.test(temp)) return false;
return true;
}
alert(isChinese("中文"));
</script>
标签:u4e00,中文,return,temp,u9fa5,正则表达式,js,re
来源: https://www.cnblogs.com/xuyupengblogs/p/15953737.html