JavaScript空判断

if(backInfo != "" && backInfo != null && typeof(backInfo)!="undefined"){
               alert(backInfo);
           }
原文地址:https://www.cnblogs.com/chenv/p/5145222.html