function instance(l,r){ let 0 = r.prototype; let v = l.__proto__; while(true){ if(v === null){ return false; } if(v === 0){ return true; } v = l.__proto__; } } 来源:https://www.cnblogs.com/wangc04/p/11765849.html 标签 instanceof