js代码
<script src="js/jquery.min.js"></script> <script src="js/jquery.z-pager.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript"> $("#pager").zPager({ totalData: 50, htmlBox: $('#wraper'), btnShow: true, ajaxSetData: false, dataRender: function(data) { console.log(data + '---data-2'); alert(data); }, }); </script>