js代码
<script type="text/javascript" src="js/jquery.min.js"></script> <script type="text/javascript" src="js/testData.js"></script> <script type="text/javascript" src="js/weeklyCalendar.js"></script> <script type="text/javascript"> var dataArr = testData; // 测试数据 weeklyCalendar(dataArr,{ // 点击日期回调 clickDate: function (date) { console.log(date) }, // 点击弹窗回调 clickDownLoad: function (that) { console.log(that) } }, true); </script>