I tried this:(我试过这个:)
for(i = 0; i < 5; i++){ for(j = i + 1; j < 5; j++){ break(2); } alert(1); }
SyntaxError
;
You should be able to break to a label, like so:(您应该能够打破标签,如下所示:)
function foo () { dance: for(var k = 0; k < 4; k++){ for(var m = 0; m < 4; m++){ if(m == 2){ break dance; } } } }
1.4m articles
1.4m replys
5 comments
57.0k users