if (val < 1000) { /*do something */ } else. switch immediate 的效能次好:. switch (Math.floor(val/1000)) { case 0: /* do something */ break;
確定! 回上一頁