Loading

摘要: String.prototype.trim = function () { let reg = /(^\s*)|(\s*$)/g return this.replace(reg, '') } // 测试 let str = ' hello word ' console.log(str.trim()) 阅读全文
posted @ 2020-04-03 17:33 fsdffsdf 阅读(192) 评论(0) 推荐(0)