【break continue 区别】Break and continue a loop

时间:2016-05-02  来源:Fast路由器  阅读:

Break and continue a loop



<script type="text/javascript教程">
var i=0;
for (i=0;i<=10;i++)
{
if (i==3)
  {
  continue;
  }
document.write("The number is " + i);
document.write("
");
}
</script>

Explanation: The loop will break the current loop and continue with the next value when i=3.


【break continue 区别】Break and continue a loop

http://m.bbyears.com/luyouqishezhi/23574.html

推荐访问:break跳出几层循环 breakthrough breakfast breaking
相关阅读 猜你喜欢
本类排行 本类最新