Javascript整除运算 整除四舍五入: X=Math.round(A/B) 整除向上取整: X=Math.ceil(A/B) 整除向下取整: X=Math.floor(A/B) 小数点后保留n位: X=X.toFixed(n)