The results of this code are exactly what you would expect from a strict application of the lexical scoping rule: a function is executed in the scope in which it was defined.

  • 这段代码执行的结果会跟你所期望的遵循词法作用域规则的程序运行的完全一样:一个函数在它所被定义的作用域中执行。
目录 查词历史