toFixed (2); //"123456.79" parseFloat(str)str以非数字开头, ... 功能:将浮点数四舍五入,取小数点后2位 function toDecimal(x) { var f = parseFloat(x); if (isNaN(f ...
確定! 回上一頁