摘要: 第二章,作用域由一系列的bubbles组成。每一个都代表了一个container或bucket,装着被声明的identifiers(variables, functions)。这些bubbles相互嵌套。这种嵌套是在开发阶段写完的。 什么制造了一个新的bubble? 只是函数吗?其他的JS结构可以创 阅读全文
posted @ 2018-10-02 21:49 Mr-chen 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 2种主要的models for how scope work. 最普遍的是Lexical Scope. 另一种 Dynamic Scope。(在Appendix a中介绍。和Lexical Scope 进行对比) Lex-time lexical scope is scope that is def 阅读全文
posted @ 2018-10-02 18:21 Mr-chen 阅读(283) 评论(0) 推荐(0) 编辑
摘要: Content Appendix: Chapter1: What is Scope? In fact, the ability to store values and pull values out of variables is what gives a program state. 背后的问题: 阅读全文
posted @ 2018-10-02 15:30 Mr-chen 阅读(220) 评论(0) 推荐(0) 编辑