將一個小數四捨五入為一個整數,與Java中的Math.round() 一樣,不保留一位小數! alert(Math.round(12.52645 * 100) / 100); //12.53.
確定! 回上一頁