ES6—53:字符串方法拓展

78 阅读1分钟

trimStart与trimEnd方法

trimStart()方法用于清除字符串左侧空白,trimEnd()方法用于清除字符串右侧空白。