JavaScript Number类型保留指定位数小数,不足补0

Number(value).toFixed(3)
原文地址:https://www.cnblogs.com/yinmu/p/14845236.html