保留两位小数

num.toFixed(1)

posted on 2017-11-06 14:03  2015熊出没  阅读(122)  评论(0编辑  收藏  举报