4. JavaScript code (JQuery Pager call) analysis (1)$("#pager") .pager({}); part pagenumber, represents the initial page number, such as: 1 pagecount, represents the total number of pages, such as: 15 buttonClickCallback, represents the method called by clicking the paging number button, such as :PageClick
(2)PageClick = function(pageclickednumber) {} part PageClick, which represents the function method when customizing the number of clicked pages, such as: function(pageclickednumber){}
The jQuery plug-in JQuery Pager only needs the starting page number pagenumber, the maximum page number pagecount, and the function method of calling buttonClickCallback when the page number is clicked to realize the javascript paging function. In practical applications, only a simple modification of the PageClick method is required. For example, if pagenumber and pagecount are set as variables, the page value can be transferred through the GET method. JQuery Pager can implement the javascript paging function. Others can be extended by themselves. At the same time, the jQuery plug-in JQuery Pager paging buttonClickCallback method can achieve rich dynamic effects. , for reference. Demo code: http://demo.jb51.net/js/jquery-pager/index.html
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn