JS中判断NaN的方法

var tmp = 0/0;
    if (isNaN(tmp)){
    alert( "NaN" );
}

猜你喜欢

转载自blog.csdn.net/qq_42062941/article/details/80762890