Math.ceil(6.008) => 6 怎么取整为 6.01
function ceil(num, byte){ let n = Math.pow(10, byte) return Math.ceil(num * n) / n } ceil(6.008, 2) //6.01
548k questions
547k answers
4 comments
86.3k users