Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 1-js/02-first-steps/03-strict-mode/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
我们注意到 `"use strict"` 可以放在函数(大多数函数)而不是整个脚本的开头。那么严格模式仅在该函数中启用。但通常人们会将它用于整个脚本。


````warn header="确保 \"use strict\" 出线在最顶部"
请确保 `"use strict"` 出线在脚本的最顶部,否则严格模式可能无法启用。
````warn header="确保 \"use strict\" 出现在最顶部"
请确保 `"use strict"` 出现在脚本的最顶部,否则严格模式可能无法启用。

这里的严格模式就没有启用:

Expand Down