html结构
<div class="calendar-box demo-box"></div>
js代码
$('.calendar-box').calendar({ ele : '.demo-box', //依附 title : '选择预约时间', // beginDate : '2017-10-07', // endDate : '2017-12-04', data : [ {date:'2017-10-07',data:'107'}, {date:'2017-10-08',data:'108'}, {date:'2017-10-09',data:'109'}, {date:'2017-10-10',data:'110'}, {date:'2017-10-11',data:'111'}, {date:'2017-10-12',data:'112'}, {date:'2017-10-13',data:'113'}, ......... ] });
获取值日期以及数据:
$('.calendar-box').calendarGetActive();