js小数点精确位数

var total = parseInt(count)*parseFloat(price);
//保留两位小数
total.Fixed(2)
posted @ 2020-08-31 10:16  Fmaj-7  阅读(436)  评论(0编辑  收藏  举报