經安全檢測,此網站為安全網站,請放心前往原始網址!

[Javascript]的trim(去除字串空白) - Y2J- 點部落

2011年3月9日 - 方法1: function trim(s){ return s.replace(/^\s*|\s*$/g,"") }. 方法2: function myBestTrim(str) { var start = -1, end = str.length; while (str.

www.dotblogs.com.tw

網址安全性掃描由 google 提供