📅  最后修改于: 2022-03-11 14:48:18.555000             🧑  作者: Mango
switch(true) {
case if(constant1 == 1): {
//statements;
break;
}
case if(constant2 == 2): {
//statements;
break;
}
default: {
//statements;
break;
}
}