和switch 多條件判斷差異. if 可以處理範圍資料的判斷,例如:. if(intVal >= 0 && intVal <= 100){ //todo something ... } 而switch 只能處理case ...
確定! 回上一頁