摘要: 首先我们先介绍一下instanceof的原理: instanceof主要是检测某个构造函数的原型对象在不在某个原型链上 function myinstanceof (left,right) { let rightProto = right.prototype; leftProto = left._p 阅读全文
posted @ 2020-08-20 16:53 讲故事的人zz 阅读(133) 评论(0) 推荐(0) 编辑