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

typeof('xxx') == "undefined"

原文地址:https://www.cnblogs.com/cjjjj/p/10415118.html