js代码
<script type="text/javascript" src="js/jquery.min.js"></script> <script type="text/javascript" src="js/jHsDate.js"></script> <script type="text/javascript"> $('#date').jHsDate(); $('#time').jHsDate({ format:'hh:mm' }); $('#datetimeformat').jHsDate({ format: 'yyyy年MM月dd日 hh时mm分' }); $('#datetimedef').jHsDate({ defDate: '2017-01-01', defIsShow: true }); $('#dateread').jHsDate({ inputIsRead: true }); $('#datemaxmin').jHsDate({ minDate: '2010-01-01', maxDate: '2017-05-31' }); $('#datecallback').jHsDate({ callBack: function () { alert('我是回掉函数') } }); </script>