js保留两位小数的解决的方法

var a = 123.456;

a = a..toFixed(2);

alert(a);//结果:123.46

原文地址:https://www.cnblogs.com/yangykaifa/p/6970197.html