js中65.4乘100为何等于6540.000000000001

parseFloat((65.4*100).toFixed(10)):解决方法:能够利用toFixed() 方法,该方法可把 Number 四舍五入为指定小数位数的数字:
相关文章
相关标签/搜索