Similarly, a function declared within another function creates a new, inner scope in which identifiers used by the outer function can be redeclared locally.

  • 同样,函数中如果创建了另一个函数,在外部作用域中使用的标识符,在内部域中也可以重新声明同名的局部变量(见当前主题编者注中的过程和函数的嵌套定义)。
目录 查词历史