toFixed();获得小数点后面多少为数字。四舍五入的方法。 例如: var floatNum = 5.234 var temp = floatNum.toFixed(1); -- temp = 5.2 --