标签:style class blog code java color
1 for(var i=0;i<5;i++){ 2 if(i == 3) continue; 3 console.log(i); //0,1,2,4,5 4 }
1 for(var i=0;i<5;i++){ 2 if(i == 3) break; 3 console.log(i); //0,1,2 4 }
1 for(var i=0;i<5;i++){ 2 if(i == 3) return; // i 等于 3 的时候会报错 3 console.log(i); //0,1,2 4 }
JavaScript之continue、break和return,布布扣,bubuko.com
JavaScript之continue、break和return
标签:style class blog code java color
原文地址:http://www.cnblogs.com/zer0/p/3785850.html