js用typeof方法判断undefined类型

时间:2014-07-15    点击:153   

js判断undefined类型

if (reValue== undefined)
{
alert("undefined");
}

发现判断不出来,最后查了下资料要用typeof方法:

if (typeof(reValue) == "undefined") 
{ 
alert("undefined"); 
}

 typeof 返回的是字符串,有六种可能:"number"、"string"、"boolean"、"object"、"function"、"undefined"

jQuery中关于ScrollableGridPlugin.js(固定表头)插件的使用逐步解析
Express.JS使用详解
JavaScript DOM节点添加示例
js中各种类型的变量在if条件中是true还是false
js用typeof方法判断undefined类型
> 返回     
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络 Product All Rights Reserved