判断js中某个变量是否被定义

typeof('xxx') == "undefined"

posted @ 2019-02-21 20:40  泥土里的绽放  阅读(4392)  评论(0编辑  收藏  举报