<p>js判断undefined类型</p><pre class="brush:js;toolbar:false">if(reValue==undefined){
alert("undefined");
}</pre><p> 发现判断不出来,最后查了下资料要用typeof</p><p>方法:</p><pre class="brush:js;toolbar:false">if(typeof(reValue)=="undefined"){
alert("undefined");
}</pre><p>typeof 返回的是字符串,有六种可能:"number"、"string"、"boolean"、"object"、"function"、"undefined"</p>