diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/glossary/block/scripting | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/zh-cn/glossary/block/scripting')
-rw-r--r-- | files/zh-cn/glossary/block/scripting/index.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/files/zh-cn/glossary/block/scripting/index.html b/files/zh-cn/glossary/block/scripting/index.html new file mode 100644 index 0000000000..abf72e81c8 --- /dev/null +++ b/files/zh-cn/glossary/block/scripting/index.html @@ -0,0 +1,18 @@ +--- +title: Block (块作用域) +slug: Glossary/Block/Scripting +tags: + - JavaScript + - 术语表 + - 编程 +translation_of: Glossary/Block/Scripting +--- +<p>在 {{glossary("JavaScript")}}中, 函数块是指被大括号("{}")包裹住的相关联的{{glossary("statement","statements")}}的集合。例如, 你可以在 {{jsxref("Statements/if...else","if (condition)")}}后声明一段函数块形式的代码,表明当条件判断为真时,解释程序应该运行上述函数块里的代码,或者当条件判断为假时跳过执行上述函数块里的代码。</p> + +<h2 id="了解更多">了解更多</h2> + +<h3 id="了解关于">了解关于</h3> + +<ul> + <li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/block">JavaScript函数块声明</a></li> +</ul> |