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
2.1m questions
2.1m answers
60 comments
57.0k users