js 原型
文章目录

- 函数的
__proto__指向Function.prototype - 函数的
prototype属性指向其prototype - 对象的
constructor指向其构造函数 - 对象的
__proto__指向其构造函数的prototype - 对象没有
prototype属性 -
prototype是一个普通对象

__proto__ 指向 Function.prototype
prototype 属性指向其 prototype
constructor 指向其构造函数__proto__ 指向其构造函数的 prototype
prototype 属性prototype 是一个普通对象
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论