判断null

  var tmp = this.pullDown.getValue();
   if(!tmp && typeof(tmp)!="undefined" && tmp!=0){ //判断null
    var alertDate = 0;
   }else{
    var alertDate = this.pullDown.getValue().val;
   };

原文地址:https://www.cnblogs.com/peng14/p/3941808.html