例如:對於X進行保留兩位小數的處理,則可以使用Math.round(X * 100) / 100.進行處理。 ps:四捨五入:JavaScript toFixed() 方法和Math.Round 方法比較
確定! 回上一頁