toFixed () 方法會使用定點小數表示法(fixed-point notation)來格式化數字。 ... parseFloat(x). ... toFixed(1); // Returns '12345.7': note rounding numObj.
確定! 回上一頁