就让风继续吹吧

贫瘠小行星,种一颗玫瑰

导航

JS 中的继承

1. 原型链继承 function Parent() { this.name = 'parent' this.play = [1, 2, 3] } function Child() { } Child.prototype = new Parent() const a = new Child() co

posted on 2021-04-24 17:28  就让风继续吹吧  阅读(53)  评论(0编辑  收藏  举报