Skip to content

Commit 490735b

Browse files
committed
Merge pull request BonsaiDen#219 from hjzheng/patch-1
命名函数的赋值表达式(指明在IE8及IE8以下版本浏览器bar在外部也是可见的)
2 parents fa7d504 + d4bd380 commit 490735b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/zh/function/general.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,7 @@
3939
`bar` 函数声明外是不可见的,这是因为我们已经把函数赋值给了 `foo`
4040
然而在 `bar` 内部依然可见。这是由于 JavaScript 的 [命名处理](#function.scopes) 所致,
4141
函数名在函数内*总是*可见的。
42+
> **注意:**在IE8及IE8以下版本浏览器bar在外部也是可见的,是因为浏览器对命名函数赋值表达式进行了错误的解析,
43+
> 解析成两个函数 `foo``bar`
4244
4345
[30]: http://cnblogs.com/sanshi/

0 commit comments

Comments
 (0)