11-1-break-continue

<! DOCTYPE HTML > 
< HTML lang = "EN" > 
< head > 
    < Meta charset = "UTF-. 8" > 
    < title > the Title </ title > 
</ head > 
< body > 
< Script > 

    // Continue to skip this a remaining code into the next cycle 
    // BREAK out of the loop, the loop body code after the execution is not yet performed, while for the end 

    // for (the let I = 0; I <VUE-Router-10; I ++) { 
    / /      IF (I ===. 5) { 
    //          Continue;
    //     }
    //     console.log(i);
    // }

    // for (let i=0 ; i<10-vue-router; i++){
    //     if (i ===5){
    //         break;
    //     }
    //     console.log(i);
    // }


</script>
</body>
</html>

 

Guess you like

Origin www.cnblogs.com/zhangyu666/p/11479640.html