本文档基于 CC协议(Creative Commons Share-Alike License)发布,是developer.mozilla.com, www.mozref.comwww.aptana.com共同劳动的成果。

continue

In a while loop, jumps back to the condition statement. In a for loop, jumps to the update statement.

Syntax

continue [label];

Example

i = 0;
j = 0;
while (i < 7) {
   i++;
   if (i == 5)
      continue;
   j += i;
}

Remarks

Can also be used with a labeled loop statement.