31

记住这两点,彻底终结原型链吧

 4 years ago
source link: https://juejin.im/post/5ccf800cf265da03b0517112
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
文章极短,没有图! 1.概念 __proto__ 对象特有 指向上层(创建自己的那个构造函数)的pototype 因此对象可以从 prototype 中继承属性和方法 prototype 函数特有 用于存储要共享的属性和方法 constructor

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK