1 2 3 4
摘要: getFloat = (num, n) => { n = n ? parseInt(n) : 0; if(n <= 0) { return Math.round(num); } num = Math.round(num * Math.pow(10, n)) / Math.pow(10, n); // 阅读全文
posted @ 2020-07-23 10:38 无序 阅读(146) 评论(0) 推荐(0) 编辑