a.toFixed(2) //2.00. 可以這樣. 四捨五入. 以下處理結果會四捨五入: var num =2.446242342;. num = num.toFixed(2); // 輸出結果為2.45. 不四捨五入.
確定! 回上一頁