js代码
<script type="text/javascript" src="js/pickuptime.min.js" ></script> <script type="text/javascript"> $(document).ready(function(){ $('#test').on('click',function(){ //数字为正整数,0表示当天可取 pickuptime.init(0,function(data){ console.log(data.split(" "));//回调 $("#sj").html(data.split(" ")); }); }); }); </script>