JavaScript 取两位小数有效数字

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

原文地址:https://www.cnblogs.com/sea-stream/p/11100346.html