laydate.js 月份区间选择插件


 

laydate.render({
      elem: '#reservation2'
      , type: 'month'
      , range: true,
      //format: '2018/09',
      theme: '#3c8dbc',
      value:'2018-09 - 2018-09',
      // value: time,
      done: function(value, startDate, endDate){
         // 回调函数
         console.log(value);
         console.log(startDate.year + "-" + startDate.month);
         console.log(endDate.year + "-" + endDate.month);
         //  $("#endDate").focus();
      },
      clear: function () {
         console.log("clear");
      },
      btns: ['clear', 'confirm']
         
});

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM