Skip to content

lazyTai/datepicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

demo

https://lazytai.github.io/datepicker/demo/

how to use

    <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>

for git

git remote add origin https://github.com/lazyTai/datepicker.git
git push -u origin master

About

日期插件datepicker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published