2019年12月4日

摘要: 构造借用(constructor strealing) 1.为什么已经存在原型链继承还要去使用构造借用 首先看一下这个例子 function Super(){ this.sets = [0,1,2]; } Super.prototype.age = 100; function Sub(){ this 阅读全文
posted @ 2019-12-04 10:50 chenyi4 阅读(215) 评论(0) 推荐(0)

导航