点击运行
JavaScript String.trim()
点击这个按钮来输出已删除空白字符的字符串。
试一试
注释:
Internet Explorer 8 或更低版本不支持 trim() 方法。
运行结果