JavaScript 取两位小数有效数字

a=2.3333
2.3333
a.toFixed(2)
"2.33"

猜你喜欢

转载自www.cnblogs.com/sea-stream/p/11100346.html
今日推荐