JavaScript 學習路系列第13 篇 ... Math.round(3.9); ... 再用Math.floor(); 或Math.ceil(); 將數字轉成整數,整數就出現了;在我的範例使用Math.floor() 。
確定! 回上一頁