保留小数点后两位

parseFloat(number).toFixed(2)
posted @ 2019-09-20 17:25  流星曳尾  阅读(191)  评论(0)    收藏  举报