摘要: 在ES6前没有extends继承,通过构造函数+原型对象模拟实现继承,称作组合继承。 function Father(uname, age) { //this 指向父构造函数的对象实例 this.uname = uname; this.age = age; } Father.prototype.mo 阅读全文
posted @ 2021-08-27 16:48 mmsmd 阅读(44) 评论(0) 推荐(0) 编辑