js判断undefined类型ePvHTML5中文学习网 - HTML5先行者学习网ePvHTML5中文学习网 - HTML5先行者学习网
if (reValue== undefined){alert("undefined");}
发现判断不出来,最后查了下资料要用typeof方法:ePvHTML5中文学习网 - HTML5先行者学习网
if (typeof(reValue) == "undefined") { alert("undefined"); }
typeof 返回的是字符串,有六种可能:"number"、"string"、"boolean"、"object"、"function"、"undefined"ePvHTML5中文学习网 - HTML5先行者学习网