摘要: https://es6.ruanyifeng.com/#docs/class 早期采用原型链写法 function A(){ this.fx1 = 1 } A.prototype.add = function(x){ this.fx1 += 1; console.log(x, this.fx1) } 阅读全文
posted @ 2023-07-13 16:30 封兴旺 阅读(19) 评论(0) 推荐(0) 编辑

联系方式: 18274305123(微信同号)