#JavaScript#js的原型继承

1.  f.__proto__ === f[的构造函数].prototype === F.prototype

2.  F.prototype.__proto__ ===  (F.prototype)[的构造函数].prototype ===   Object.prototype 

3. f.constructor === F

4. F.__proto__ === F[的构造函数].prototype === Function.prototype

注意: 

(F.prototype)[的构造函数] === Object

F[的构造函数] === Function

多啰嗦一句( js 的继承靠的是__proto__ ,并不是prototype)

猜你喜欢

转载自blog.csdn.net/G_wendy/article/details/81980959