round方法是对小数点后1位四舍五入, 所以要对小数点后2位四舍五入时, 可以先*10,再/10 对小数点后2位四舍五入: Math.round(a*10)/10.0