保留两位小数

parseFloat(value).toFixed(2);

原文地址:https://www.cnblogs.com/zhang-wenbin/p/7405635.html