以下我們將為大家介紹JavaScript 保留兩位小數的實現方法: 四捨五入以下處理結果會四捨五入: var num =2.446242342; num = num.toFixed(2); // 輸出 ...
確定! 回上一頁