摘要: 参考文章:https://segmentfault.com/a/1190000016708006 原型链继承 子类的原型为父类的一个实例对象。 function Person(name) { this.name = name } Person.prototype.setAge = function 阅读全文
posted @ 2021-02-28 00:14 懒懒同学不懒 阅读(50) 评论(0) 推荐(0) 编辑