JS浮点数(小数)运算Bug

来源:互联网 发布:软件测试自动化脚本 编辑:程序博客网 时间:2024/05/21 02:29
<script>    alert(0.05+0.01);</script>


使用 toFixed(n)   保留n位小数

原创粉丝点击