32

从原型聊到原型继承,深入理解 JavaScript 面向对象精髓

 4 years ago
source link: https://juejin.im/post/5cee3c69e51d45108b2cae03
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.
前言 开头说点题外话,不知道什么时候开始,我发现在 JavaScript 中,大家都喜欢用 foo 和 bar 来用作示例变量名,为此专门查了一下这家伙的 来源: “The etymology of foo is obscure. Its use in con

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK