JavaScript 取两位小数有效数字

 

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

posted @ 2019-06-27 23:32  anobscureretreat  阅读(1018)  评论(0)    收藏  举报