js小数点精确位数

var total = parseInt(count)*parseFloat(price);
//保留两位小数
total.Fixed(2)
原文地址:https://www.cnblogs.com/Fmaj7/p/13588167.html