2018年11月21日
摘要: 1: t.toFixed(2); 2: t=Math.round(t*100)/100; alert(t); 3: <script> a=3.4534134; alert(parseInt(a*100)/100) </script> 补充: 这个方法是在一个例子中看到的,我测试了一下是小数点后四舍五 阅读全文
posted @ 2018-11-21 14:51 马元昊 阅读(1794) 评论(0) 推荐(0) 编辑