To format a number using fixed-point notation, you can simply use the toFixed method: (10.8).toFixed(2); // "10.80" var num = 2.4; alert(num.
確定! 回上一頁