Javascript 之 Number toFixed(num) var n = 3.1415926;n.toFixed(num); // 把一个浮点数四舍五入为 num 位数的数字。n.toPrecision(num); // 把一个