parseFloat (推荐)x 100 / 100parseInt和parseFloat的区别 parseFloat (推荐)n = 2.344444parseFloat(n.toFixed(2)) // 2.34n = 2.3034444parseFloat(n.toFixed(2)) // 2.3 x 100 / 100n = 2.344444n.toFixed(2) * 100 / 100 // 2.34n = 2.3034444n.toFixed(2) * 100 / 100 // 2.3 parseInt和parseFloat的区别https://blog.csdn.net/wu_xianqiang/article/details/79672339