-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
函数名称解析顺序:
在JavaScript中,一个作用域(scope)中的名称(name)有以下四种:
-
语言自身定义(Language-defined): 所有的作用域默认都会包含this和arguments。
-
函数形参(Formal parameters): 函数有名字的形参会进入到函数体的作用域中。
-
函数声明(Function decalrations): 通过function foo() {}的形式。
-
变量声明(Variable declarations): 通过var foo;的形式。
https://dancon.gitbooks.io/git-books/content/js/essay/function_hoisting.html
http://www.cnblogs.com/betarabbit/archive/2012/01/28/2330446.html
http://www.jianshu.com/p/28ede2f4f30f

