原型链

function User(){}

一下全部指定顶级原型

console.log(User.__proto__.__proto__==Object.prototype) true

console.log(User.prototype.__proto__==Object.prototype) true

console.log(User.prototype.__proto__==User.__proto__.__proto__) true

Last Updated:
Contributors: 刘荣杰