ingenious/jquery-bootpag

Bootstrap 动态分页 jQuery 插件

安装: 163

依赖者: 1

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 263

语言:HTML

dev-master 2015-09-02 17:57 UTC

This package is auto-updated.

Last update: 2024-08-29 03:47:37 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