发布于 2年前

js判断NaN

var tmp = 0/0; 
if(isNaN(tmp)){ 
    alert("NaN"); 
}
©2020 edoou.com   京ICP备16001874号-3