【break continue 区别】Break and continue a loop

更新时间:2016-05-02    来源:Fast路由器    手机版     字体:

【www.bbyears.com--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.


本文来源:http://www.bbyears.com/luyouqishezhi/23574.html

猜你感兴趣

热门标签

更多>>

本类排行