Skip to content

Commit 6f711f4

Browse files
authored
Merge pull request BonsaiDen#366 from DevinZhong/patch-2
fix typo
2 parents 39202ac + ea285da commit 6f711f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/zh/other/timeouts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
}
102102
bar();
103103

104-
由于 `eval` 在这种情况下不是被[直接](#core.eval)调用,因此传递到 `setTimeout` 的字符串会自*全局作用域*中执行;
104+
由于 `eval` 在这种情况下不是被[直接](#core.eval)调用,因此传递到 `setTimeout` 的字符串会到*全局作用域*中执行;
105105
因此,上面的回调函数使用的不是定义在 `bar` 作用域中的局部变量 `foo`
106106

107107
建议**不要**在调用定时器函数时,为了向回调函数传递参数而使用字符串的形式。

0 commit comments

Comments
 (0)