初始值为9每次循环加0.2,第二次加就会少掉0.00000000001
JavaScript 浮点数陷阱及解法
2.1m questions
2.1m answers
60 comments
57.0k users