switch语句中 报错
Cannot jump from switch statement to this case label
解决方法 就是在语句后 加上{}
switch (tag) {
case 1: {
// something to do
break;
}
case 2: {
// something to do
break;
}
case 3: {
// something to do
break;
}
}