摘要: 1、传统形式 > 原型链 过多的继承了没用的属性 Grand.prototype.lastName = "1"; function Grand(){ } var grand = new Grand(); Father.prototype = grand; function Father() { } 阅读全文
posted @ 2020-01-20 19:39 巷陌i 阅读(105) 评论(0) 推荐(0) 编辑