一、js取float型小數點後兩位數的方法 //保留兩位小數 //功能:將浮點數四捨五入,取小數點後2位 function toDecimal(x) { var f = parseFloat(x); if ...
確定! 回上一頁