判断null

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

posted @ 2014-08-28 16:20  hlp鹏  阅读(111)  评论(0编辑  收藏  举报