摘要: 这篇博客整理自红宝书p162-p174,面试经常会问到。 ##1.原型链继承 将父类的实例作为子类的原型 function Parent() { this.isShow = true this.info = { name: "yhd", age: 18, }; } Parent.prototype. 阅读全文
posted @ 2021-01-14 16:12 前端小白狐 阅读(147) 评论(1) 推荐(1)