js中去除所有空格

    技术2025-04-13  39

    方法

    function strTrim(str){ str = str.replace(/(^/s*)|(/s*$)/g, ""); return str;}

    最新回复(0)