73

一次搞定闭包和this | hpoenixf's blog

 6 years ago
source link: http://hpoenixf.com/%E4%B8%80%E6%AC%A1%E6%90%9E%E5%AE%9A%E9%97%AD%E5%8C%85%E5%92%8Cthis.html
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.
闭包和this,是两个相当高频的考点,然而你有没有想过,实际上他们两个都跟同一个知识点相关? 有请我们的这篇文章的主角,执行上下文 执行上下文执行上下文是什么可以简单理解执行上下文是js代码执行的环境,他的组成如下 123456executionContextObj = { this: 对的就是你关注的那个this, VO:变量对象, scopeChain: 作用域链,跟闭包相关&

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK