摘要: 引用一下MDN对instanceof的解释:“instanceof 运算符用于检测构造函数的 prototype 属性是否出现在某个实例对象的原型链上。” 代码: function myInstanceof(leftVaule, rightVaule) { // 是否为引用类型 if(typeof 阅读全文
posted @ 2022-04-23 17:24 Sofiaღ 阅读(44) 评论(0) 推荐(0) 编辑