js小判断

判断是undefined
if(typeof(myvariable)=="undefined")
判断是null或者undifined
if(!myvariable)

posted @ 2013-04-17 18:21  瓜王  阅读(96)  评论(0)    收藏  举报