js 保留两位小数 四舍五入函数 toFixed() Posted on 2013年12月25日 by Hana 以下是函数使用例子: 两位小数点: a.toFixed(2); 四位小数点: a.toFixed(4);