nan

  • JS中的NaN是什么?如何检测?

    nan是js中表示“非数字”的特殊值,类型为number但不等于自身,判断时需注意:1. 使用isnan()可能误判因转换问题;2. 推荐使用es6的number.isnan()精…

    2025-06-06
    040