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‘] });
原文地址:https://www.cnblogs.com/yuyedaocao/p/10976321.html
时间: 2024-10-05 04:41:36