摘要: var rounded = Math.round( number * 10 ) / 10; // round to one digit var rounded = Math.round( number * 100 ) / 100; // round to two digit function round(value, precision) { var multiplier = Math.pow(1 阅读全文
posted @ 2019-08-20 20:11 日光之下无新事 阅读(272) 评论(0) 推荐(0) 编辑