486 原型及原型链模式:3个重要知识点,从面向对象角度来讲解内置类,hasOwnProperty,原型链方法中的THIS问题,基于内置类的原型扩展方法
摘要:
滴滴考察原型、原型链面试题 Function.prototype.a = () => { console.log(1) } Object.prototype.b = () => { console.log(2) } function A () {} const a = new A() a.a() / 阅读全文
posted @ 2020-06-27 20:17 冲啊! 阅读(161) 评论(0) 推荐(0) 编辑