摘要: instanceof 是通过原型链判断的,A instanceof B, 在A的原型链中层层查找,是否有原型等于B.prototype,如果一直找到A的原型链的顶端null,仍然不等于B.prototype,那么返回false,否则返回true. function instance(left,rig 阅读全文
posted @ 2019-08-07 21:31 dawn~monster 阅读(3918) 评论(0) 推荐(0) 编辑