摘要: //继承的几种实现: //解决方案1.通过原型继承 function Parent1(){ this.name = 'Parent1'; } function Child1(){} Child1.prototype = new Parent1(); //问题1:1.父类属性中存在引用类型属性时,会出 阅读全文
posted @ 2018-02-22 02:05 code_文文 阅读(185) 评论(0) 推荐(1) 编辑