摘要: //判断undefined:var tmp = undefined; if (typeof(tmp) == "undefined"){ alert("undefined"); }//判断null:var tmp = null; if (!tmp && typeof(tmp)!="undefined" && tmp!=0){ alert("null"); }//判断NaN:var tmp = 0/0; if(isNaN(tmp)){ alert("NaN"); }/ 阅读全文
posted @ 2013-05-22 19:18 imlucky 阅读(9729) 评论(0) 推荐(0) 编辑