清除所有中文字符及空格

5年以前  |  阅读数:362 次  |  编程语言:JavaScript 
function clearCNCharsAndSpaces(str){
    return str.replace(/[\u4e00-\u9fa5 ]/g,'');
}

Copyright© 2013-2020

All Rights Reserved 京ICP备2023019179号-8