JavaScript判断指定的变量是否存在,例如想变量a是否存在,可以调用 isExistsVariable(a)
//是否存在指定变量
function isExitsVariable(variableName){
try{
if(typeof(variableName)=="undefined"){
//alert("value is undefined");
return false;
}else{
//alert("value is true");
return true;
}
}catch(e){
}
return false;
}


