页面中添加代码 String.prototype.trim=function() { return this.replace(/(^\s*)|(\s*$)/g,'');} 调用:title.trim() 相关文章: 2021-08-06 2022-12-23 2022-12-23 2022-12-23 2021-12-20