Examples of jQuery Ajax custom paging components (jquery. loehpagerv1.0)
The paging function can be implemented in two simple steps.
<Script src = "<% = basePath %>/resources/js/jquery-1.7.1.min.js"> </script> <script src = "<% = basePath %>/resources/js/jquery. loehpagerv1.0.js "> </script> <script type =" text/JavaScript "> // perform business processing in the callback function loehpagercallback (data) {alert ('Data Processing callback here ') ;}$ (function () {$ (' # mermerpager '). loehPagerPlugin ({'color': 'Gray ', 'fontsize': '15px', 'totalcount': <% = totalpage %>, 'pagesize': '15 ', 'ajaxcallback ':' Loehpagercallback ', 'ajaxrequestparameter': 'name = leohpager & age = 10', 'ajaxoriginalparameter ': 'name = leohpager & age = 10', 'ajaxurl ': '<% = basePath %>/ipload? Path = data'}) ;}); </script>
Totalcount':<%=totalpage%>:The total page is the total number of pages of the paging table queried when the page is loaded for the first time.
'ajaxCallBack':'loehpagercallback':Set the callback method here. You can change the method name to any js method defined on the call page.
'ajaxRequestParameter':'name=leohpager&age=10':
'ajaxOriginalParameter':'name=leohpager&age=10',
The first parameter for the preceding two parameters is the parameter for ajax data request. It is a combination of the second parameters and the selected page.
Version 1.0: a few simple codes can implement the paging function and will be updated later.
The above is the jQuery Ajax custom paging component (jquery. loehpagerv1.0) detailed examples, hope to help you, if you have any questions, please leave a message, xiaobian will reply to you in time.