8
__proto__는 constructor.prototype과 어떻게 다릅니 까?
function Gadget(name, color) { this.name = name; this.color = color; } Gadget.prototype.rating = 3 var newtoy = new Gadget("webcam", "black") newtoy.constructor.prototype.constructor.prototype.constructor.prototype 항상 등급이 3 인 객체를 반환합니다. 그러나 내가 다음을 수행하면 : newtoy.__proto__.__proto__.__proto__ 체인이 돌아갑니다 null. 또한 Internet Explorer에서 __proto__속성 이 없으면 null을 어떻게 확인 합니까?