intelogie / jquery-bootpag
此包最新版本(dev-master)没有提供许可信息。
Bootstrap分页
dev-master
2015-10-07 03:18 UTC
This package is auto-updated.
Last update: 2024-08-29 04:19:51 UTC
README
这个jQuery插件可以帮助你使用Bootstrap或任何其他HTML页面创建动态分页。
#示例
动态加载页数的代码片段。更多示例可以在项目主页找到。
<p id="content">Dynamic page content</p> <p id="pagination-here"></p>
$('#pagination-here').bootpag({ total: 7, // total pages page: 1, // default page maxVisible: 5, // visible pagination leaps: true // next/prev leaps through maxVisible }).on("page", function(event, num){ $("#content").html("Page " + num); // or some ajax content loading... // ... after content load -> change total to 10 $(this).bootpag({total: 10, maxVisible: 10}); });
#许可
插件在MIT许可下可用(见LICENSE文件)
版权 (c) 2013-2015 botmonster.com