Vanilla JavaScript RegEx (Trim ALL Whitespace). var str = " a b c d e f g "; var newStr = str.replace(/\s+/g, ''); // "abcdefg" ...
確定! 回上一頁