在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:botmonster/jquery-bootpag开源软件地址:https://github.com/botmonster/jquery-bootpag开源编程语言:HTML 52.8%开源软件介绍:bootpag - dynamic paginationThis jQuery plugin helps you create dynamic pagination with Bootstrap or in any other html pages. ExampleSnippet that dynamic loads number of pages. More examples can be found on project homepage <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});
}); LicensePlugin available under MIT license (See LICENSE file) Copyright (c) 2013-2015 botmonster.com |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论