2024年12月4日

js继承

摘要: 继承 原型链继承 通过原型链prototype实现的继承:将Man的prototype属性指向Person的实例对象 function Person(name) { this.name = 'Person' this.children = [] } function Man() { this.sex 阅读全文

posted @ 2024-12-04 22:58 shenhf 阅读(13) 评论(0) 推荐(0)

导航