break

break 语句终止当前循环或 switch 语句,并将程序控制转移到终止语句后面的语句。当在带标签的语句中使用时,它还可以用于跳过 标签声明

¥The break statement terminates the current loop or switch statement and transfers program control to the statement following the terminated statement. It can also be used to jump past a labeled statement when used within that labeled statement.

Try it