var num = 123.4005; alert(num); // toFixed(N) 取小數第N ... [JavaScript] toFixed 取小數點第幾位&& parseFloat 去掉小數點尾數零.
確定! 回上一頁