摘要:
const RetainDecimal = (num, count, type) => { // num -> 需要保留的小数, count -> 需要保留的位数, type -> 保留的类型, eg: 'floor': 向下取整, 默认是四舍五入 const ratio = 10 ** count 阅读全文
posted @ 2017-11-27 19:19
weimo10235
阅读(915)
评论(0)
推荐(0)


浙公网安备 33010602011771号