datepicker

      this.setValue();
      var _this = this;
      var _picker = this.picker;
      var today = new Date();
      this.picker.find('tbody td.day').on('click', function(){
       var td = $(this);
       var select_day = td.text();
       // var lastdate = _this.viewDate;
       // var last_month = lastdate.getMonth();
       // var last_day = lastdate.getUTCDate();
       var day = today.getUTCDate();
       if(select_day > day) {
         return false;
       }
      });


你可能感兴趣的:(JavaScript,Datepicker)