摘要: es5继承: 借用构造函数 function A () { this.name = 'zsp' } A.prototype.sayHello = funtion() { console.log(`hi ${ this.name }`) } function B() { A.call(this) } 阅读全文
posted @ 2021-02-18 10:09 千昭。 阅读(13) 评论(0) 推荐(0) 编辑