https://lazytai.github.io/datepicker/demo/
<div id='schedule-box' class="boxshaw">
</div>
<div>
<h3 id='h3Ele'></h3>
</div>
<script src="../dist/date.js"></script>
<script>
var mySchedule = new Schedule({
el: '#schedule-box',
//date: '2018-9-20',
clickCb: function (y, m, d) {
document.querySelector('#h3Ele').innerHTML = '日期:' + y + '-' + m + '-' + d
},
nextMonthCb: function (y, m, d) {
document.querySelector('#h3Ele').innerHTML = '日期:' + y + '-' + m + '-' + d
},
nextYeayCb: function (y, m, d) {
document.querySelector('#h3Ele').innerHTML = '日期:' + y + '-' + m + '-' + d
},
prevMonthCb: function (y, m, d) {
document.querySelector('#h3Ele').innerHTML = '日期:' + y + '-' + m + '-' + d
},
prevYearCb: function (y, m, d) {
document.querySelector('#h3Ele').innerHTML = '日期:' + y + '-' + m + '-' + d
}
});
</script>
git remote add origin https://github.com/lazyTai/datepicker.git
git push -u origin master