摘要: 整理使用Javascript函数将数值保留两位小数: 1.num.toFixed(2) //进位 2.(Math.round(num * 100) / 100).toFixed(2) //进位 3.(Math.floor(num * 100) / 100).toFixed(2) //不进... 阅读全文
posted @ 2014-05-19 22:43 Hypocrite 阅读(624) 评论(0) 推荐(0) 编辑