上一页 1 ··· 5 6 7 8 9
摘要: 寄生组合继承 题目描述:实现一个你认为不错的 js 继承方式 实现代码如下: function Parent(name) { this.name = name; this.say = () => { console.log(111); }; } Parent.prototype.play = () 阅读全文
posted @ 2022-09-09 22:34 hellocoder2029 阅读(125) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9