随笔分类 -  继承

摘要:聊一聊js中的继承 一、简单继承 使用原型赋值的方式继承,将实例化的对象,赋值给子级的原型 父级构造函数 function Parent(param) { this.name = 'parent' this.otherName = 'otherName' this.param = param || 阅读全文
posted @ 2019-04-29 17:09 青S衫% 阅读(212) 评论(0) 推荐(0)