就让风继续吹吧

贫瘠小行星,种一颗玫瑰

导航

2021年4月24日 #

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 就让风继续吹吧 阅读(53) 评论(0) 推荐(0) 编辑