关于js保留两位小数方法总结

https://www.cnblogs.com/le220/p/9756881.html
https://blog.csdn.net/hyb1234hi/article/details/84142721
https://www.jb51.net/article/134067.htm
https://segmentfault.com/q/1010000015323261/a-1020000015323671

经典保留两位小数:(Math.round(5.1699 * 100)/100).toFixed(2)

posted @ 2019-07-03 18:38  一抹夏忧☆  阅读(1384)  评论(0编辑  收藏  举报