Math.formatFloat = function (f, digit) {
var m = Math.pow(10, digit);
return Math.round(f * m, 10) / m;
}
https://blog.csdn.net/u012143360/article/details/53148591
Math.formatFloat = function (f, digit) {
var m = Math.pow(10, digit);
return Math.round(f * m, 10) / m;
}
https://blog.csdn.net/u012143360/article/details/53148591
转载于:https://www.cnblogs.com/ron123/p/9987759.html