百度地图毕业设计源码-weakMap:知识点改写

百度地图毕业设计源码面试知识点js基础前端面试宝典webpack原理数据结构1.1继承JS实现继承的几种方式`` es5借用构造函数实现继承function Parent1(){ this.name = "parent1" } function Child1(){ Parent1.call(this); this.type = "child1"; }缺点:Child1无法继承Parent1的原型对象,并没有真正的实现继承(部分继承)借用原型链实现继承function Parent2(){ this.name = "parent2"; this.play = [1,2,3]; } function Child2(){ this.type = "child2"; } Child2.prototype = new Parent2();缺点:原型对象的属性是共享的组合式继承function Parent3(){ this.name = "parent3"; this.play = [1,2,3]; } function Child3(){ Parent3.ca

zip 文件大小:5.9MB