js代码
<script src="js/jquery-1.8.3.min.js"></script> <script src="js/timeData.js" type="text/javascript" charset="utf-8"></script> <script> $(function(){ $("#dataInput").off("timeData").on("timeData",function(event){ if(timei==1){ alert("回调函数") timei=0; } }).dataYear() }) </script>