jsp中取两位小数

var d=1.11111111;
 var c = d.toFixed(2); 
alert(c);
原文地址:https://www.cnblogs.com/xujiating/p/6408426.html