判断javascript变量是否定义

if ("undefined" != typeof g_curruser)

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