search
Homephp教程php手册Share a set of JQ paging plug-ins written by yourself

Supports 4 paging modes, 1: Normal link paging 2: Click the paging button 3: Click to load more 4: Pull down to load more
Share a set of JQ paging plug-ins written by yourself
Share a set of JQ paging plug-ins written by yourself

Currently only 4 paging modes are supported
1: Ordinary link paging
Ajax:
2: Click the paging button
3: Click to load more
4: Pull down to load more// 1 Ordinary paging<br> var config = ({<br> Mode : 1,                                                                                                                           PageBer: 2,                                                                                                                                                                                                                                                                            ​  PageMax: 10,                                                                                                         PageUrl: 'http://127.0.0.1/1/1.php?page=[#]', //Page link with page break <br> PageId : 'Page', //HTML ID inserted into the paging Page entity<br> PageCid: 'tbinfo', //HTML ID inserted into paginated content<br> PageHtml: '<tr> <td><input name="ckbox" value="" type="checkbox"></td> <td>[0]</td> <td>[1]</td> <td>[2]</td> <td class="text-right"><a href="%5B0%20%5D">Delete</a></td> </tr>',                                                                             PageArray: '<?php echo $array; ?>',//Paging content after JSONization<br> Page : '<?php echo $page;?>', //Current number of pages<br> PageNum : '<?php echo $num; ?>',//Total number of paging records<br> });<br> JunPage(config);<br> //Call paging <br><br>// 2. ajax click button to paginate <br> var config = ({<br> Mode : 2,                                                                                                                                       PageBer:2, PageMax: 10,                                                                                                                                                                         PageUrl: 'http://127.0.0.1/1/index.php?page=[#]', //Page link with page break PageId : 'Page', //HTML ID inserted into the paging Page entity
PageCid: 'tbinfo', //HTML ID inserted into paginated content
PageHtml: '

[0] [1] [2] Delete ',                                                                                                                                                                                                              ​  PageArray: '',                                                                                                                                                                   Page: 1, PageNum: '',                                                                                                                                                                                                                                                                                           ​  /*Paging parameters in Ajax mode*/
Ajax: 'get', // ajax mode
AjaxNo: 'index.php', //The file name that needs to be replaced in the paging does not need to be replaced and is set to null
AjaxYes: 'ajax_1.php', //File name for paging replacement

});
JunPage(config);

// 3.ajax click to load more
var config = ({
Mode : 3,                                                                                                                               PageBer: 2,                                                                                                                                                                                                             ​  PageMax: 10,                                                                                                                                                                         PageUrl: 'http://127.0.0.1/1/index.php?page=[#]', //Page link with page break PageId : 'Page', //HTML ID inserted into the paging Page entity
PageCid: 'tbinfo', //HTML ID inserted into paginated content
PageHtml: ' [0] [1] [2] Delete ',                                                                                                                                                                                                                    ​  PageArray: '',                                                                                                                 Page : 1,                                                                                                                                                                                                                                                                                                   ​ PageNum: '',                                                                                                                                                                                                                                                                                          ​  /*Paging parameters in Ajax mode*/
Ajax:'get', AjaxNo: 'index.php', //The file name that needs to be replaced in the paging does not need to be replaced and is set to null
AjaxYes: 'ajax_2.php', //File name for paging replacement

});
JunPage(config);

// 4.ajax download and load more
var config = ({
Mode : 4,                                                                                                                                   PageBer: 10,                                                                                                                                                                                               ​ PageMax: 10,                                                                                                                                                                         PageUrl: 'http://127.0.0.1/1/index.php?page=[#]', //Page link with page break
PageId : 'Page', //HTML ID inserted into the paging Page entityPageCid: 'tbinfo', //HTML ID inserted into paginated content
PageHtml: ' [0] [1] [2] Delete ',                                                                                                                                                                                                                    ​  PageArray: '',                                                                                                                 Page : 1,                                                                                                                                                                                                                                                                                                   ​ PageNum: '',                                                                                                                                                                                                                                                                                          ​  /*Paging parameters in Ajax mode*/
Ajax:'get', AjaxNo: 'index.php', //The file name that needs to be replaced in the paging does not need to be replaced and is set to null
AjaxYes: 'ajax_3.php', //File name for paging replacement

});
JunPage(config);
The code has been uploaded to the group file

QQ group number: 368405253



Statement
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor