Math.round 會對JavaScript 的除法結果進行四捨五入計算。Math.floor 會取得小於或等於"運算結果小數"的最大整數。 parseInt()可以傳回由字串轉換而成的整數。
確定! 回上一頁