摘要: toFixed 四舍五入遇到坑。 1.235.toFixed(2) = 1.231.2350001.toFixed(2) = 1.24 //去尾法Number.prototype.toFloor = function (num) { return Math.floor(this * Math.pow 阅读全文
posted @ 2016-03-10 11:00 瓜尔佳 阅读(9588) 评论(0) 推荐(0)