4-3-1 break 语句:4-3-2 continue 语句: 4-3-1 break 语句: for(var i=0;i<5;i++){ console.log(i) if(i == 3){ break;中断循环 } } 4-3-2 continue 语句: <script> //跳出某个循环,然后继续循环 for(var i=0;i<=5;i++){ if(i==3){ continue; } console.log(i) } </script>