JavaScript_break语句与continue语句

There are two special statements that can be used inside loops: break and continue.

---break和continue是两个用在内部循环的特殊语句。

 

(break语句)Break statement

Use the break statement to break the loop.

---使用break语句跳出循环

 

(continue语句)Continue statement

Use the continue statement to break the current loop and continue with the next value.

---用continue语句来跳出当前的循环继续下面的值

 

 

特别说明:web前台技术_JavaScript脚本基础教程PDF格式下载。

你可能感兴趣的:(JavaScript_23)