页面中添加代码

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
猜你喜欢
  • 2021-10-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-15
  • 2021-11-18
相关资源
相似解决方案