保留两位小数

num.toFixed(1)

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