解析JavaScript中toFixed进位规则

昨天有同学反馈使用toFixed进行保留小数点的操作时遇到了诡异的问题。…

Similar

JavaScript Temporal

Date has been a long-standing pain point in ECMAScript. This is a proposal for Temporal, a global Object that acts as a top-level namespace (like Math), that brings a modern date/time API to the ECMAScript language. For a detailed look at some of the prob... (more…)

Read more »