2010年4月8日

js判断undefined类型

摘要: if (reValue== undefined){ alert("undefined"); } 发现判断不出来,最后查了下资料要用typeof 方法:if (typeof(reValue) == "undefined") { alert("undefined"); } typeof 返回的是字符串,有六种可能:"number"、"string"、"boolean"、"object"、"func... 阅读全文

posted @ 2010-04-08 10:56 冰危节奏 阅读(281583) 评论(13) 推荐(15) 编辑

导航