JavaScript_break语句与continue语句

来源:互联网 发布:php扩展有哪些 编辑:程序博客网 时间:2024/05/21 11:29

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格式下载。

原创粉丝点击