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)

 

#JavaScript#js的原型继承

相关文章:

  • 2022-12-23
  • 2022-01-06
  • 2021-04-29
  • 2021-10-29
  • 2022-12-23
  • 2022-02-16
  • 2022-12-23
猜你喜欢
  • 2021-05-27
  • 2022-02-03
  • 2022-01-01
  • 2021-10-25
  • 2021-06-05
  • 2022-01-12
  • 2022-12-23
相关资源
相似解决方案