Swith case 根据变量值让程序有更多的选择,比起一串冗长的if叙述,使用swith case可使程序代码看起来比较简洁。 范例: switch (sensorValue) {. case 23:.
確定! 回上一頁