一些编码规范中,要求所有的 switch 语句中必须包含 default 分支,即使默认分支中没有任何代码,如下所示:. switch (foo) { case 1: doSomething(); break; case 2: ...
確定! 回上一頁