- 博客(1)
- 收藏
- 关注
转载 Javascript format numbers
Round to a certain number of places For rounding decimals you can use the built-in JavaScript methods toFixed or toPrecision. var num = 10; var result = num.toFixed(2); // result will equal 10.00 n
2013-07-10 13:13:41 600
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人