1、break2、continue 1、breakfor(var i=0;i<=5;i++){ if(i == 3){ break } console.log(i) } 2、continue //continue跳过某个条件,继续循环 for(var a=0;a<=6;a++){ if(a == 3){ continue; } console.log(a) }