new 運算符
?function Foo() {}
? ? ? ?Foo.prototype.x = 1;
? ? ? ?var f = new Foo();
? ? ? ?console.log(f.x);
? ? ? ?console.log(f.hasOwnProperty('x')); //false
? ? ? ?console.log(f._proto_.hasOwnProperty('x')); // 老師,這個地方報錯誒?Uncaught TypeError: Cannot read property 'hasOwnProperty' of undefined
2015-05-11
?console.log(f.__proto__.hasOwnProperty('x'));
_proto_ -> __proto__
2015-06-05
。。。。。。。