__proto__ 和 prototype 的关系:
__proto__ 是每个对象都有的属性;prototype是构造函数的属性;他们指向的是同一个对象。
例如:
function F(){};
var f = new F();
f.__proto__ === F.prototype //true
__proto__ 和 prototype 的关系:
__proto__ 是每个对象都有的属性;prototype是构造函数的属性;他们指向的是同一个对象。
例如:
function F(){};
var f = new F();
f.__proto__ === F.prototype //true