32

我还没搞懂 JS 中this指向及继承,直到有人向我这样解释它

 6 years ago
source link: https://juejin.im/post/5cfd9d30f265da1b94213d28
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.
neoserver,ios ssh client
在理解继承之前,需要知道 js 的三个东西: 什么是 JS 原型链 this 的值到底是什么 JS 的new 到底是干什么的 想阅读更多优质文章请猛戳GitHub博客,一年百来篇优质文章等着你! 一、什么是 JS 原型链? 我们知道 JS 有对象,比如

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK