jjzjj

javascript - [[Prototype]] vs prototype : . .有什么区别? (MyCons.__proto__ === MyCons.prototype) 等于 FALSE

这里好像有区别...假设我们有functionMyConstructor(){}MyConstructor的[[Prototype]]是Function.prototype,不是MyConstructor.prototype.换句话说(非标准/“console.log-able”)的话:MyConstructor.__proto__不是MyConstructor的MyConstructor.prototype试试这个:functionMyConstructor(){};(MyConstructor.__proto__===MyConstructor.prototype);//false