摘要: 一句话总览 JavaScript 的继承本质只有一种:原型链 其他所有方式,都是围绕它的不同组合方案。 一、原型链继承 function Parent() { this.name = 'parent' } Parent.prototype.say = function () {} function 阅读全文
posted @ 2025-12-27 13:12 隐形的喷火龙 阅读(45) 评论(0) 推荐(0)