Today, I found that there are two kinds of Break's grammar (Break; and Break Label;) when I look at JavaScript's authoritative guidelines. Essence Essence I didn't look closely before, just on the previous pages.
But I don't understand how Label wrote, so I checked the Internet and found an example
Copy code code as follows:
FUNCTION FOO ()
{{
dance:
for (var k = 0; k <4; k ++) {
for (varm m = 0; m <4; m ++) {
if (m == 2) {
break dance;
}
}
}
}
In this way, you can directly break the entire cycle and nested! Intersection
(C, Java's break is like this, not serious reading ...)