判断javascript变量是否定义

if ("undefined" != typeof g_curruser)

posted @ 2013-03-22 22:15  kuailewangzi1212  阅读(131)  评论(0)    收藏  举报