摘要: 定义一个父类Person: function Person(name){ this.name=name; } Person.prototype.age=25;Person.prototype.show=function(){ console.log(this.name);} 1.原型链继承 子类的原 阅读全文
posted @ 2020-05-05 23:51 程嘿嘿 阅读(691) 评论(0) 推荐(0) 编辑