JS 检测中文字符的正则表达式


function CheckChinese(str) {

    return /[^/u4e00-/u9fa5]/.test(str);

};

posted @ 2012-01-13 15:06  LemonLi  阅读(721)  评论(0编辑  收藏  举报