正则去除字符串中所有空格

版权声明:转载请注明出处。 https://blog.csdn.net/zeroyulong/article/details/82970432
    function removeAllSpace(str) {
         return str.replace(/\s+/g, "");
    }

猜你喜欢

转载自blog.csdn.net/zeroyulong/article/details/82970432