From c40612041809fe289aba58aefa170bbe784aba1f Mon Sep 17 00:00:00 2001 From: t7yang Date: Mon, 10 Jan 2022 08:38:07 +0800 Subject: remove name attribute for zh-CN --- .../web/javascript/reference/statements/do...while/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/statements/do...while/index.html') 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

do...while 语句创建一个执行指定语句的循环,直到condition值为 false。在执行statement 后检测condition,所以指定的statement至少执行一次。

-

语法

+

语法

do
    statement
@@ -29,9 +29,9 @@ while (condition);
  
循环中每次都会计算的表达式。如果 condition 值为真, statement 会再次执行。当 condition 值为假,则跳到do...while之后的语句。
-

示例

+

示例

-

使用 do...while

+

使用 do...while

下面的例子中,do...while 循环至少迭代一次,并且继续迭代直到 i不再小于 5 时结束。

@@ -91,7 +91,7 @@ document.getElementById('example').innerHTML = result;

{{Compat("javascript.statements.do_while")}}

-

相关链接

+

相关链接