The Object.getPrototypeOf() method returns the prototype (i.e. the value of the internal [[Prototype]] property) of the specified object.
The Function.prototype property represents the Function prototype object. Function objects inherit from Function.prototype. Function.prototype cannot be modified.
呵呵呵呵你混淆了兩個概念。
Object
本身是一個 函數,Object.prototype
不是Object
這一對象的原型,而是Obejct
這一函數的 函數原型,也就是new Object()
的原型。而
Object.getPrototypeOf(Object)
是把Object
這一函數看作對象,返回的是 函數對象 的 原型,也就是Function.prototype
即function Empty() {}
了。