intelogie/jquery-bootpag

此包最新版本(dev-master)没有提供许可信息。

Bootstrap分页

安装: 156

依赖: 1

建议: 0

安全: 0

星标: 0

关注者: 2

分支: 263

语言:HTML

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