ES3之变量提高 ( hoisting )

JavaScript引擎在预编译时,会将声明(函数声明、变量声明)自动提高至函数或全局代码的顶部。可是赋值不会提高。 Because variable declarations (and declarations in general) are processed before any code is executed, declaring a variable anywhere in the c
相关文章
相关标签/搜索