US-FE
US-FE
open in new window
首页
You Don't Know JS
You Don't Know JS
V1
Up & Going
Scope & Closures
This & Object Prototypes
Types & Grammar
Async & Performance
ES6 & Beyond
V2
Get Started
Scope & Closures
Professional Javascript for Web Developers V4
Professional Javascript for Web Developers V4
Chapter 1: What Is JavaScript?
Chapter 2: JavaScript in HTML
Chapter 3: Language Basics
Chapter 4: Variables, Scope, and Memory
Chapter 5: Basic Reference Types
Chapter 6: Collection Reference Types
Chapter 7: Iterators and Generators
Chapter 8: Objects, Classes, and Object-Oriented Programming
Chapter 9: Proxies and Reflect
Chapter 10: Functions
Chapter 11: Promises and Async Functions
Chapter 12: The Browser Object Model
Chapter 13: Client Detection
Chapter 14: The Document Object Model
Chapter 15: DOM Extensions
Chapter 16: DOM Levels 2 and 3
Chapter 17: Events
Chapter 18: Animation and Graphics with Canvas
Chapter 19: Scripting Forms
Chapter 20: JavaScript APIs
Chapter 21: Error Handling and Debugging
Chapter 22: XML in JavaScript
Chapter 23: JSON
Chapter 24: Network Requests and Remote Resources
Chapter 25: Client-Side Storage
Chapter 26: Modules
Chapter 27: Workers
Chapter 28: Best Practices
Appendix A: ES2018 and ES2019
Appendix B: Strict Mode
Appendix C: JavaScript Libraries and Frameworks
Appendix D: JavasScript Tools
Languages
Languages
简体中文
English
GitHub
open in new window
#
你不懂JS:作用域与闭包
#
目录
序
前言
第一章:什么是作用域?
编译器理论
理解作用域
嵌套的作用域
错误
第二章:词法作用域
词法分析时
欺骗词法作用域
第三章:函数与块儿作用域
函数中的作用域
隐藏于普通作用域
函数作为作用域
块儿作为作用域
第四章:提升
先有鸡还是先有蛋?
编译器再次袭来
函数优先
第五章:作用域闭包
启示
事实真相
现在我能看到了
循环 + 闭包
模块
附录A:动态作用域
附录B:填补块儿作用域
附录C:词法 this
附录D:鸣谢