Bootstrap Paginator使用
来源:互联网 发布:java面试葵花宝典 pdf 编辑:程序博客网 时间:2024/05/29 12:28
Bootstrap Paginator是一款基于Bootstrap的js分页插件,参数介绍地址:http://www.cnblogs.com/moretry/p/4441728.html
jsp:
<div class="padlr" align="center">
<ul id="pagintor">
</ul>
</div>
js代码:
$(function() {
var options = {alignment : "center",//居中显示
currentPage : 1,//当前页数
totalPages : 10,//总页数 注意不是总条数
bootstrapMajorVersion: 3,
numberOfPages:5,
pageUrl: function(type, page, current){
if (page==current) {
return "javascript:void(0)";
} else {
return "${ctx}/service/show/main/show?pageIndex="+page;
}
}
};
options.totalPages='<%=request.getAttribute("total")%>';
options.currentPage='<%=request.getAttribute("pageIndex")%>';
$("#pagintor").bootstrapPaginator(options);
});
后台java:
@RequestMapping(method = RequestMethod.GET, value = "/products")
public String show(Model m,Integer pageIndex) {
if (pageIndex==null) {
pageIndex=1;
}
m.addAttribute("total", sms.spaceNumber()/9+1);
m.addAttribute("list", sms.getList(pageIndex));
m.addAttribute("pageIndex", pageIndex);
return "/service/show/showproduct";
}
阅读全文
0 0
- Bootstrap Paginator使用
- Bootstrap Paginator 分页插件使用
- Bootstrap使用记录–paginator分页
- bootstrap-paginator 个性化分页插件使用
- 使用Bootstrap Paginator分页插件进行分页
- Bootstrap Paginator分页插件超详细使用示例
- bootstrap-paginator分页控件
- Bootstrap Paginator 分页插件
- bootstrap-paginator分页插件
- Bootstrap分页插件--Bootstrap Paginator
- Bootstrap分页插件--Bootstrap Paginator
- bootstrap分页插件Bootstrap Paginator
- Bootstrap分页插件--Bootstrap Paginator
- 基于bootstrap的分页插件bootstrap-paginator
- 使用bootstrap-paginator.js 分页来进行ajax 异步分页请求
- nodejs分页设计配合bootstrap-paginator
- ASP.NET MVC+bootstrap paginator分页
- 页面分页插件 Bootstrap Paginator使用方法
- input框的回车事件
- 内部排序算法:直接选择排序法
- 微服务框架Spring Cloud介绍 Part1: 使用事件和消息队列实现分布式事务
- java melody 如何整合nutzframework监控action方法?
- Linux环境下模拟实现sleep函数
- Bootstrap Paginator使用
- android中shape的使用
- 【python 淘宝爬虫】淘宝信誉分抓取
- File.separator 实现Windows和Linux文件路径中的斜线
- 直播营销系统搭建在公众号上有什么好处?
- gh0st远控源码图文详解Gh0st通信协议解析(1)
- Ubuntu下Android Studio环境搭建
- 安卓sqlite数据库简单的增删改查和数据库版本更新
- jdk1.8和TomCat7.x的环境配置