The trim() method removes whitespace from both sides of a string. The trim() method does not change the original string. ... text.replace(/^\s+|\s+$/gm,'');.
確定! 回上一頁