慕婉清4814631
2018-12-15 21:22:50浏览 1458
function T () {};
var ttt = new T();
ttt.__proto__ === T.prototype
T.__proto__ === Function.prototype
Function.prototype.__proto__ === Object.prototype
Object.prototype.__proto__ === null
T.prototype.constructor === T
ttt instanceof T
Function instanceof Function // true
Function instanceof Object // true
Object instanceof Function // true
Object instanceof Object // true
function T () {};
var ttt = new T();
ttt.__proto__ === T.prototype
T.__proto__ === Function.prototype
Function.prototype.__proto__ === Object.prototype
Object.prototype.__proto__ === null
T.prototype.constructor === T
ttt instanceof T
Function instanceof Function // true
Function instanceof Object // true
Object instanceof Function // true
Object instanceof Object // true