js原型链继承规范

Object.prototype = undefined
Object.prototype.proto = null
Object.proto = Function.prototype
Function.prototype.prototype = undefined
Function.protoype.proto = Object.prototype
Function.proto = Function.__prototype = Function.proto.prototype;

function f(){};
f.prototype.proto = Object.prototype;
f.proto = Function.prototype;
f.prototype.prototype = undefined;

你可能感兴趣的:(js原型链继承规范)