Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Block (scripting)

我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译!

In JavaScript, a block is a collection of related statements enclosed in braces ("{}"). For example, you can put a block of statements after an if (condition) block, indicating that the interpreter should run the code inside the block if the condition is true, or skip the whole block if the condition is false.

Learn more

Learn about it

 

文档标签和贡献者

 此页面的贡献者: chrisdavidmills, klez, rolfedh, Jeremie, Andrew_Pfeiffer
 最后编辑者: chrisdavidmills,