bootstrap-paginator分页插件
来源:互联网 发布:数据分析金融分析就业 编辑:程序博客网 时间:2024/05/04 22:20
Bootstrap Paginator是一款基于Bootstrap的js分页插件,功能很丰富。
官网地址:http://bootstrappaginator.org/ (需翻墙)
需引入文件:
<link rel="stylesheet" href="css/bootstrapv3.css"><script src="js/jquery-2.1.0.js" type="text/javascript"></script><script src="js/bootstrap-paginator.js"></script><script src="js/qunit-1.11.0.js"></script>
示例代码:
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>Bootstrap Paginator V3 Tests</title> <link rel="stylesheet" href="css/bootstrapv3.css"> <script src="js/jquery-2.1.0.js" type="text/javascript"></script> </head> <body> <div> <ul id='bp-3-element-test'></ul> </div> <script src="js/bootstrap-paginator.js"></script> <script src="js/qunit-1.11.0.js"></script> <script> $(function() { test("Test bootstrap v3 rendering", function() { var element = $('#bp-3-element-test'); var options = { bootstrapMajorVersion: 3,//bootstrap版本 currentPage: 1,//起始页 numberOfPages: 5,//每页显示几个页码 totalPages: sumPage//总共页数 } element.bootstrapPaginator(options); ok(element.hasClass('pagination-sm'), "Root element should have pagination-sm class"); }) $('ul').on('click', function(){ myPage = $(this).find('li.active a').html();//当前页码 $.ajax({ type:"get", url: "http://localhost:8080/customer/list/" + myPage, dataType:"json", contentType:"application/x-www-form-urlencoded;charset=utf-8", timeout:5000, success:function(data){ console.log(data) //向DOM添加数据 }, error:function(status, statusText){ alert('请求失败'); } }); }) }); </script> </body></html>
github下载:
DownloadVisit Project in GitHub
阅读全文
0 0
- Bootstrap Paginator 分页插件
- bootstrap-paginator分页插件
- Bootstrap分页插件--Bootstrap Paginator
- Bootstrap分页插件--Bootstrap Paginator
- bootstrap分页插件Bootstrap Paginator
- Bootstrap分页插件--Bootstrap Paginator
- Bootstrap Paginator 分页插件使用
- 基于bootstrap的分页插件bootstrap-paginator
- 使用Bootstrap Paginator分页插件进行分页
- 页面分页插件 Bootstrap Paginator使用方法
- bootstrap-paginator 个性化分页插件使用
- Bootstrap Paginator改写的js分页插件
- bootstrap-paginator分页插件无格式
- Bootstrap Paginator分页插件+ajax 实现动态无刷新分页
- Bootstrap Paginator分页插件+ajax 实现动态无刷新分页
- Bootstrap Paginator分页插件+ajax 实现动态无刷新分页
- bootstrap-paginator分页控件
- Bootstrap Paginator分页插件超详细使用示例
- Docker的一些概念的理解
- java设计模式之策略模式和简单工厂模式
- 要点提炼|开发艺术之Drawable
- UE4对模型制作镜子的思考
- Android动画结束后控件Visibility
- bootstrap-paginator分页插件
- Spring注解@Resource和@Autowired区别对比
- 26. Remove Duplicates from Sorted Array
- Notepad++ Python/C++ 控制台print/cout requests utf-8乱码解决方案
- bzoj 3747: [POI2015]Kinoman (线段树+预处理)
- 设计模式知识连载(9)---继承_5:如虎添翼-寄生式继承
- swing
- oracle单行函数练习题
- hdu 2059 龟兔赛跑(dp)