function sum(a, b) { //.toFixed(4) 两位小数点 return parseFloat(a - b).toFixed(2); } function sum1(a, b) { return parseFloat(a + b).toFixed(2); }