Number对象 1.toFixed() 方法可把 Number 四舍五入为指定小数位数的数字。 (jsitem.LEAST_RETAIL / a1).toFixed(4) jsitem.LEAST_RETAIL / a1:假如计算出来有9位小数,使用toFixed(n),可以保留n位小数,同时进行四舍五入 Math对象 Math.ceil(actualPerNum) 作用同样是四舍五入,不过最后是一个整数 Math对象中还有许多方法