摘要: 1 function func(){ 2 return this.toString() + this.toString() 3 } 4 5 String.prototype.duplicate = func 6 7 let a = 'abc' 8 console.log(a.duplicacte() 阅读全文
posted @ 2020-09-08 22:34 xuwennn 阅读(171) 评论(0) 推荐(0) 编辑