JS 中的继承
摘要:
1. 原型链继承 function Parent() { this.name = 'parent' this.play = [1, 2, 3] } function Child() { } Child.prototype = new Parent() const a = new Child() co 阅读全文
posted @ 2021-04-24 17:28 就让风继续吹吧 阅读(56) 评论(0) 推荐(0) 编辑