📜  javascript 中断内部循环 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:21.230000             🧑  作者: Mango

代码示例1
loop1:
    for (var i in set1) {
loop2:
        for (var j in set2) {
loop3:
            for (var k in set3) {
                break loop2;  // breaks out of loop3 and loop2
            }
        }
    }