如果不允许使用小数位数,则format方法显然会舍入输入。 maximumFractionDigits: 0, 四舍五入由中点规则驱使远离零。 console.log(new Intl.NumberFormat("en", ...
確定! 回上一頁