亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

js用typeof方法判斷undefined類型

 更新時(shí)間:2014年07月15日 17:38:16   投稿:whsnow  
js判斷undefined類型,可以使用typeof方法,typeof 返回的是字符串,其中就有一個(gè)是undefined

js判斷undefined類型

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

發(fā)現(xiàn)判斷不出來,最后查了下資料要用typeof方法:

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

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

相關(guān)文章

最新評(píng)論