日期:2014-05-16 浏览次数:20379 次
>>> "sss".replace(/^\s+|\s+$/g, "") "sss" >>> " sss".replace(/^\s+|\s+$/g, "") "sss" >>> " sss ".replace(/^\s+|\s+$/g, "") "sss" >>> " s s s ".replace(/^\s+|\s+$/g, "") "s s s"