diff options
author | t7yang <t7yang@gmail.com> | 2022-01-10 08:38:07 +0800 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2022-02-16 02:35:54 +0800 |
commit | c40612041809fe289aba58aefa170bbe784aba1f (patch) | |
tree | 8ca89b071d04afcf7abd6d9a04d0765a041d9c8a /files/zh-cn/web/javascript/reference/statements/do...while | |
parent | 12a899ab8540bc84f56a0dc6491be80a48499d49 (diff) | |
download | translated-content-c40612041809fe289aba58aefa170bbe784aba1f.tar.gz translated-content-c40612041809fe289aba58aefa170bbe784aba1f.tar.bz2 translated-content-c40612041809fe289aba58aefa170bbe784aba1f.zip |
remove name attribute for zh-CN
Diffstat (limited to 'files/zh-cn/web/javascript/reference/statements/do...while')
-rw-r--r-- | files/zh-cn/web/javascript/reference/statements/do...while/index.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/files/zh-cn/web/javascript/reference/statements/do...while/index.html b/files/zh-cn/web/javascript/reference/statements/do...while/index.html index 614ef2ad4b..45eaec2221 100644 --- a/files/zh-cn/web/javascript/reference/statements/do...while/index.html +++ b/files/zh-cn/web/javascript/reference/statements/do...while/index.html @@ -12,7 +12,7 @@ translation_of: Web/JavaScript/Reference/Statements/do...while <p><strong><code>do...while</code> 语句</strong>创建一个执行指定语句的循环,直到<code>condition</code>值为 false。在执行<code>statement</code> 后检测<code>condition</code>,所以指定的<code>statement</code>至少执行一次。</p> -<h2 id="Syntax" name="Syntax">语法</h2> +<h2 id="Syntax">语法</h2> <pre class="syntaxbox">do <em>statement</em> @@ -29,9 +29,9 @@ while (<em>condition</em>); <dd>循环中每次都会计算的表达式。如果 <code>condition</code> 值为真, <code>statement</code> 会再次执行。当 <code>condition</code> 值为假,则跳到<code>do...while</code>之后的语句。</dd> </dl> -<h2 id="Examples" name="Examples">示例</h2> +<h2 id="Examples">示例</h2> -<h3 id="Example:_Using_do...while" name="Example:_Using_do...while">使用 <code>do...while</code></h3> +<h3 id="Example:_Using_do...while">使用 <code>do...while</code></h3> <p>下面的例子中,<code>do...while</code> 循环至少迭代一次,并且继续迭代直到 <code>i</code>不再小于 5 时结束。</p> @@ -91,7 +91,7 @@ document.getElementById('example').innerHTML = result;</pre> <p>{{Compat("javascript.statements.do_while")}}</p> -<h2 id="See_also" name="See_also">相关链接</h2> +<h2 id="See_also">相关链接</h2> <ul> <li>{{jsxref("Statements/while", "while")}}</li> |