mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-28 21:32:20 +00:00
commit
7dcb7e7164
@ -205,7 +205,7 @@ function f(){
|
||||
}
|
||||
}
|
||||
|
||||
f() // 没有输出
|
||||
f() // undefined
|
||||
```
|
||||
|
||||
上面代码中,函数f执行后没有任何输出,原因在于变量提升,导致内层的tmp变量覆盖了外层的tmp变量。
|
||||
|
Loading…
x
Reference in New Issue
Block a user