js代码
<script type="text/javascript" src="js/jquery.min.js"></script> <script type="text/javascript" src="js/mobileSelect.js"></script> <script type="text/javascript" src="js/selectDate.js"></script> <script type="text/javascript"> $.selectDate("#date", { start: 1939, end: 2058, select: [2000, 8, 8], title: ' ' }, function (data) { // 获取年月日 console.log(data); $('.txt').text(data.year+'年'+data.month+'月'+data.day+'日') }); </script>