手写instanceof 发表于 2022-11-02 123456789function myInstanceof(left,right) { let prototype = right.prototype left = left.__proto__ while(true){ if(!left)return false if(left == prototype)return true left = left.__proto__ }} 本文作者: 小柒 本文链接: https://coloey.github.io/2022/11/02/手写instanceof/ 版权声明: 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!