jquery分页组件(每页显示多少条)
/**
* 功能说明:jPager 分页插件
* 参数说明:pages:[] 分页的控件个数 @id:显示分页的div ID,@showSelectPage: 是否显示当前分页的条目过滤下拉框
* @currentpage 当前第几页
* @pagesize type:number 每页显示多少条目
* @total type:number 总条数
* @totalpage type:number 总页码数
* */ (function ($) {
'use strict'; $.jPager = function (option) { if (!option || option.totalpage == 0) { for (var i = 0; i < option.pages.length; i++){
$('#'+ option.pages[i].id).empty();
}
return;
} var limitNumber = [20, 30, 50]; var defaultOption = {
pages: [{
id: '',
showSelectPage: true
}],
currentpage: 1, //当前页
pagesize: 20, //一页显示数量
total:1, //条数
totalpage: 1 //总页码
}; var pageObj = $.extend(defaultOption, option); if (pageObj.pages.length == 0) {
return;
} for (var i = 0; i < pageObj.pages.length; i++) {
var obj = pageObj.pages[i];
var _btnId = obj.id;
var _isShowSelect = obj.showSelectPage;
var tpl = '<div class="pager-left">总共 '+ pageObj.total +' 条</div></div><div class="pager-center"><span class="pager">';
if (_isShowSelect) {
tpl += '<span class="count" date-val="'+ pageObj.pagesize +'">'+ pageObj.pagesize +'</span>';
tpl += '<span class="pageCount">';
tpl += '<dl><dt class="open-dt" role-page="role-page" data-val="'+ pageObj.pagesize +'">';
tpl += '<i class="icon-yt-menu-list"></i></dt>';
tpl += '<dd style="display:none" data-val="'+limitNumber[0]+'">'+limitNumber[0]+' <i class="fa fa-check hide"></i></dd>';
tpl += '<dd style="display:none" data-val="'+limitNumber[1]+'">'+limitNumber[1]+' <i class="fa fa-check hide"></i></dd>';
tpl += '<dd style="display:none" data-val="'+limitNumber[2]+'">'+limitNumber[2]+' <i class="fa fa-check hide"></i></dd>';
tpl += '</dl></span>';
} tpl += '<span class="firstPage hide"><i class="fa fa-angle-double-left"></i></span><span class="pageContainer">'; var _pages = [];
if (pageObj.totalpage > 5) { if (pageObj.currentpage <= 3) {
_pages = [1, 2, 3, 4, 5];
} else if (pageObj.currentpage > 3 && (pageObj.totalpage - pageObj.currentpage >= 2)){
_pages[0] = pageObj.currentpage - 2;
_pages[1] = pageObj.currentpage - 1;
_pages[2] = pageObj.currentpage;
_pages[3] = pageObj.currentpage + 1;
_pages[4] = pageObj.currentpage + 2;
}else if (pageObj.currentpage > 3 && (pageObj.totalpage - pageObj.currentpage == 0)){
_pages[0] = pageObj.currentpage - 4;
_pages[1] = pageObj.currentpage - 3;
_pages[2] = pageObj.currentpage - 2;
_pages[3] = pageObj.currentpage - 1;
_pages[4] = pageObj.currentpage;
}else if (pageObj.currentpage > 3 && (pageObj.totalpage - pageObj.currentpage == 1)) {
_pages[0] = pageObj.currentpage - 3;
_pages[1] = pageObj.currentpage - 2;
_pages[2] = pageObj.currentpage - 1;
_pages[3] = pageObj.currentpage;
_pages[4] = pageObj.currentpage + 1;
} } else {
for (var j = 0; j < pageObj.totalpage; j++ ) {
_pages[j] = j + 1;
}
} for (var k = 0; k < _pages.length; k++ ) {
tpl += '<span class="page" data-page="page'+ _pages[k] +'">'+ _pages[k] +'</span>';
} tpl += '</span><span class="lastPage hide"><i class="fa fa-angle-double-right"></i></span></span></div>'; var _totalTpl = '<div class="pull-left">'+ pageObj.total +' <span>条数据</span></div>';
var _select = '<select id="goToPage">';
var _sOption = '';
for(var p = 0; p < pageObj.totalpage; p++) {
_sOption += '<option value="'+ (p + 1) +'">'+ (p + 1) +'</option>';
} _select += _sOption + '</select>';
var _gogoPage = '<div class="pager-right">跳转至'+ _select +'页</div>';
if (obj.showTotal) {
tpl = _totalTpl + tpl;
}
$('#'+_btnId).html(tpl+_gogoPage);
$('#goToPage').val(pageObj.currentpage); //设置上一页 、下一页 是否可见
if (pageObj.currentpage == 1) {
if (pageObj.totalpage >1) {
$('.lastPage').removeClass('hide');
}
}else if (pageObj.currentpage > 1) {
if (pageObj.currentpage == pageObj.totalpage) {
$('.firstPage').removeClass('hide');
}else{
$('.firstPage').removeClass('hide');
$('.lastPage').removeClass('hide');
}
} //切换页码
$('#goToPage').unbind().bind('change', function () {
var _val = $(this).val();
var page = {
// limit: $('.pager .count:eq(0)').text().trim(),
page: _val
} obj.callback(page);
}); //点击页码数量
$('.pageCount dd').click(function () { var _hasClass = $(this).children('i').hasClass('hide');
if (!_hasClass) {
return;
} var _text = $(this).text();
var _val = $(this).attr('data-val');
$('.pager .count').text(_text);
$(this).siblings('dd').children('i').addClass('hide');
$(this).children('i').removeClass('hide');
if($('#limit')){
$('#ipt_limit').val(_text);
} var page = {
limit: $('.pager .count:eq(0)').text().trim(),
page: 1
} $('.pageCount dd').slideUp(10, function () {
$(this).siblings('dt').attr('style', '').attr('data-val', _val);
$(this).siblings('dd').children('i').addClass('hide');
});
obj.callback(page);
}); //点击页码
$('span[data-page]').click(function () {
var _hasClass = $(this).hasClass('active'); if (_hasClass) {
return;
} var _page = $(this).attr('data-page');
$('span[data-page]').removeClass('active');
//$(this).addClass('active');
$('span[data-page="'+ _page +'"]').addClass('active');
if($('#ipt_page')){
$('#ipt_page').val(_page);
} var page = {
page: $('.pager:eq(0) .active').text().trim(),
limit: $('.pager .count:eq(0)').text().trim()
}
obj.callback(page);
}); //点击上一页
$('#'+_btnId +' span .firstPage i').bind('click', function () {
var currentPage = parseInt($('.pager:eq(0) .active').text().trim());
if (currentPage == 1) {
$('.firstPage').addClass('hide');
return;
}
var page = {
page: 1,
limit: $('.pager .count:eq(0)').text().trim()
}
obj.callback(page);
}); //点击下一页
$('#'+_btnId +' span .lastPage i').click(function () {
var currentPage = parseInt($('.pager:eq(0) .active').text().trim());
if (currentPage == pageObj.totalpage) {
$('.lastPage').addClass('hide');
return;
}
var page = {
page: pageObj.totalpage,
limit: $('.pager .count:eq(0)').text().trim()
}
obj.callback(page);
});
} //初始化,选中当前页码
$('span[data-page]').removeClass('active');
$('span[data-page="page'+ pageObj.currentpage +'"]').addClass('active'); /* 切换每页条数 */
$('.pageCount dt').click(function() { var _val = $(this).attr('data-val');
$(this).siblings('dd[data-val="'+_val+'"]').children('i').removeClass('hide'); $('dd').slideUp(10, function() {
$('.select-has-border').removeClass('select-has-border-open').children('dd').css('display', 'none');
$('.campaign-query').css('border-radius', '5px');
$('.cp-select').removeClass('cp_select_open');
});
var _isShow = $(this).siblings('dd').css('display') == 'none' ? false : true;
if (_isShow) {
$(this).siblings('dd').hide();//.removeClass('page-Open').addClass('page-Close')
var _css = {
'borderTop': '0px solid #ccc',
'border-top-right-radius': '0px',
'border-top-left-radius': '0px',
'backgroundColor': 'white',
'color': ''
};
$(this).css(_css);
} else {
$(this).siblings('dd').slideDown(10);//.removeClass('page-Close').addClass('page-Open')
var _css = {
'border-top-right-radius': '5px',
'border-top-left-radius': '5px',
'backgroundColor': '#414C59',
'color': 'white'
};
$(this).css(_css);
}
}); };
})(jQuery);
/* 分页 */
.pager{
height: 30px;
line-height: 30px;
padding: 0;
margin-top: 0;
margin-left: 70px;
display: inline-block;
} .pager{
float:left;
} .pager .pageCount{
float:left;
width:60px;
height: 30;
line-height: 30px;
text-align: left;
margin-left: -5px;
text-indent: 5px;
} .pager .count{
padding-top:3px;
float:left;
cursor:default;
} .pager .pageCount dl{
margin: 0;
padding: 0;
width: 60px;
} .pager .pageCount dt>i:first-child{
vertical-align:bottom;
margin-top: 3px;
} .pager .pageCount dd{
background-color: #414C59;
height: 24px;
width:60px;
line-height: 24px;
text-align: left;
text-indent: 5px;
color: white;
border:none;
} .pager .pageCount dd:last-child{
border-bottom-right-radius: 5px;
border-bottom-left-radius: 5px;
} .pager .pageCount dd:hover{
background-color: #333E4D;
} .pager-left{
float:left;
width: 100px;
} .pager-center{
float:left;
width: 340px;
} .pager-right{
float: left;
width: 160px;
} #goToPage{
width:50px;
margin-left: 5px;
margin-right: 5px;
} .pager dt:hover{
color:#2AC3FA;
} .pager .firstPage{
margin-left: 20px;
} .pager .firstPage>i{
margin-top: 5px;
} .pager .page{
margin-left: 5px;
} .pager .lastPage{
margin-left: 10px;
} .pager .lastPage>i{
margin-top: 5px;
} .pager i.little{
font-size:10px;
vertical-align: top;
margin-top: 5px;
margin-left: 2px
} .pager span{
cursor: pointer;
border:1px solid transparent;
} .pager .page{
padding-left: 3px;
padding-right: 5px;
padding-top: 2px;
padding-bottom: 2px;
border-radius: 5px;
} .pager span.active{
background-color: #2AC3FA;
color:white;
padding-left: 5px;
padding-right: 5px;
padding-top: 1px;
padding-bottom: 2px;
border-radius: 5px;
} .pager span.page:hover{
background-color: white;
border:1px solid #2AC3FA;
color:#2AC3FA;
} .pager .lastPage:hover, .pager .firstPage:hover{
color:#2AC3FA;
} .pager .open{
color:#ffffff;
background-color: #414C59;
} .pager span{
display:inline-block;
height: 24px;
line-height: 20px;
margin-left: 2px;
float: left;
} .pager .pageContainer{
display: inline-block;
min-width: 26px;
width: auto;
height: 30px;
line-height: 30px;
overflow:hidden;
}
需要的参数:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAq4AAACFCAIAAAAVae2NAAAPlklEQVR4nO3dTW8ctx3Hcb4gAXwTfg86EdDBQN5CBBjIHsWDr4IvyUVSDm1RsFukUd20aeWmmzoIYquTKDWauHloCyM1nAZBnDiK2AOHHHJmdnb2QfvE7wcGLI1m52Gf+Js/uUthAQBAxsSqDwAAAKwSUQAAgKyJZwAAIGNEAQAAskYUAAAga0QBAACyRhQA1t/ocmfn8mRwtTN4PuMKADAWUQBYeye7V4PRi92dy9GsKwDAeIuOAqPBjhC7J12rnOwKsTPgLQvoZ3Q5OHk2GlyeREt2hBXClq+05goAMIUFR4HRYEdMiAInu4IoAMzu+WDnajByP/xE8w9gbnNFgZNdEewMRvGvZWPvooGze5L8KsTuSfn7zmCw61dpbHUx5wlsi9Hlzu6L8sfBT7xCAMxtnijQVuk/2Y2rAv63uFgwGuxENwu/hRvSfwB0GV3u+rGBo8FVd28cAPQwV1WgusgPbXcaBdJL/H5RoG2rADyqAgAWbI4oEEYIxtf8SRRwOaBXVSCs0bpVAEEYK/BiVzBWAMD85u0gqF3yR5f0vtgf2xmMooXpb/5WbVsFEKl9ggAA5sL3CgAAkDWiAAAAWSMKAACQNaIAAABZIwoAAJA1YQEA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NjNhdckfLvvjRdEkreG32tSF7fMdpitJXURbnZA6gNUrChcFLrQiCgBYvCV3ECTX81UBICoFFFrWZyxWplZOaG4lrCO18RsIG/WrJxuTumDQATZJoY/JrQCuwwqjQNzoV8vTKJBe0Y+PAlU1IOSG6KI/2oYyjUoCdQGsP6MYKADguqx3VSC94p8QBdxGlJKirSoQNfj1tAGsN6MOyqe7OaOGBWDhVvEJgo5e/XhZaMXjK3jX0o+9xq/VBNxtpIpv1RiUQAcB1po5dh8fEOJAMGwQwDXYyO8ViIQg0NGgt4xXBAAAzqZHAQAAMBeiAAAAWSMKAACQNaIAAABZIwoAAJA1ogAAAFkjCgAAkLX/Ay8vnjxb382eAAAAAElFTkSuQmCC" alt="" />
使用方法:
//分页控件
var option = {
pages: [{
id: 'pageIndex',
showSelectPage: false,
callback: function (option) {
//点击页码回调函数
//goPage(option);
var param = {
'grade_id': $('#addGrade').val(),
'class_id': $('#addClass').val(),
'start_date': $('#startTime').val(),
'end_date': $('#endTime').val(),
'status': $('#foodStatus').val()
}; param = $.extend(param, option);
renderSyllabusIndex(param); //点击页码的回调函数
}
}],
pagesize: _data.pagesize,
total: _data.total,
currentpage: _data.currentpage,
totalpage: _data.totalpage
}; $.jPager(option);
效果:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAArwAAAAnCAIAAABi5gy9AAAFm0lEQVR4nO3dP2/bRhzG8byerBz8CvIGCnbRYr0BbxwLrX0B7AtQswYZiKxdhAwGHKAAPThAgUIo0GwdPAQZLFnswH93xzvyeOKRJ/v7AYHYtEJdpPPdw+OPypsCAADAwpulGwAAAC4DoQEAAFghNAAAACuEBgAAYIXQAAAArBAaAACAFUIDAACwQmgAgBflw8dPAW5LvyqYBqEB7u4eT9f3h5/+PLz9/NSzvftyuHk4fv1+Wrq9wKsQ4AwdYJPghtAAR++/PV/d9mWF7vb+2/PSrQZevgBn6ACbBDeEBri4ezyNTQzldvfIegPgV4AzdIBNgpsRoSFP4yhOc2FPlig7hIdKP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xq1eZJM+VllTPSb/zwX9omDQxUNkA3/I0Fu6dTDJh6GymvzyNoyQRLuNKY1Wdawc+rCHglYYeQ7dcVq9A+xkXM7ULo42qaeimXrUmZyAWTH6m1/6KtW2Tj8/Nv174DQ377ar3E0CtkRgwD+EGy5J42tyEBvnkWbw8kee5kDfMXmBo6Lx0RbMIw8gdIv7DKrjwGBqk+yfOQWLAQtT1grZGfODDGuRTL8sPWu727Yv4GOn6RTH/ZnI5MUiEBrjwFRqmqHwEXrmLCA24UIQGuOgNDQNbz2HFGpbBYhYAWgHO0AE2CW4IDXDhKTQAOF+AM3SATYIbQgNc8F9jA8H68PFTgNvSrwqmQWiAi5uHo1touL4/LN12AIAjQgNc3D2e3ELDH/89L912AIAjQgMc/fbP89jE8Ovfx6VbDQBwR2iAu6/fT9f3w8UNV7dP1/cH1hgA4NIRGgAAgBVCAwAAsEJoAAAAVggNAADACqEBAABYITQAAAAr/wOg+UUApZExwQAAAABJRU5ErkJggg==" alt="" />
jquery分页组件(每页显示多少条)的更多相关文章
- Django中使用JS通过DataTable实现表格前端分页,每页显示页数,搜索等功能
Django架构中自带了后端分页的技术,通过Paginator进行分页,前端点击按钮提交后台进行页面切换. 优缺点:后端分页对于数据量大的场景有其优势,但页面切换比较慢. 后端分页python3代码如 ...
- Jquery分页组件
最近工作不是很忙,所以就看看淘宝kissy分页组件源码,感觉代码也不怎么难 容易理解,所以就按照他们的思路自己重新理一遍,来加深自己对他们的理解,同时对他们的分页组件进行一些重构(因为他们分页是做好了 ...
- 百度-设置-搜索设置-每页显示50条-保存设置-打印alert信息-accept确定
一.场景: 代码: #coding:utf-8from selenium import webdriverfrom selenium.webdriver.common.action_chains im ...
- 基于Jquery插件Uploadify实现实时显示进度条上传图片
网址:http://www.jb51.net/article/83811.htm 这篇文章主要介绍了基于Jquery插件Uploadify实现实时显示进度条上传图片的相关资料,感兴趣的小伙伴们 ...
- 第二百零九节,jQuery EasyUI,Pagination(分页)组件
jQuery EasyUI,Pagination(分页)组件 学习要点: 1.加载方式 2.属性列表 3.事件列表 4.方法列表 本节课重点了解 EasyUI 中 Pagination(分页)组件的使 ...
- extjs4 分页工具栏pagingtoolbar的每页显示数据combobox下拉框
var itemsPerPage = 20; var combo; //创建数据源store Ext.define('recordStore', { extend : 'Ext.data.Store' ...
- 【jQuery 分页】jQuery分页功能的实现
自写的jQuery实现分页功能的分页组件: 功能效果如下: 分页组件就是上图中的三部分, 分别放在表格上部 和下部 . 其中, 1>>>页面的代码如下: product.jsp 其 ...
- vue分页组件table-pagebar
之前一直接触都是原始的前端模型,jquery+bootstrap,冗杂的dom操作,繁琐的更新绑定.接触vue后,对前端MVVM框架有了全新的认识.本文是基于webpack+vue构建,由于之前的工作 ...
- django 分页组件
一.仿django分页功能自己实现 urls.py 1 2 3 4 5 6 7 8 9 from django.conf.urls import url from django.contrib i ...
随机推荐
- URAL 1996 Cipher Message 3
题目 神题. 记得当初DYF和HZA讲过一个FFT+KMP的题目,一直觉得很神,从来没去做. 没有真正理解FFT的卷积. 首先考虑暴力. 只考虑前7位 KMP 找出所有 B 串可以匹配 A 串的位置. ...
- Flutter实战视频-移动电商-02.Flutter实战建立项目和编写入口文件
02.Flutter实战建立项目和编写入口文件 创建项目: flutter create flutter_shop 创建完成之后呢,它会提示我们, 进入flutter_shop的目录,然后执行flut ...
- 18.Consent 实现思路介绍
讲一下实现Consent的逻辑 interaction它会根据returnUrl 输入用户名和密码后是在登陆的Controller,登陆完之后呢,会有一个returnUrl returnurl会被带到 ...
- ORA-22992:没法使用从远程表选择的LOB定位器
OLB 问题 ORA-22992:没法使用从远程表选择的LOB定位器 Create global temporary table temp on commit preserve rows as sel ...
- SQL——登陆触发器实现限制IP
[转载]原文地址:https://www.baidu.com/link?url=N-SM28ge21TTYky79dYk8otsjKgYCIpy-0RBSvMV25f8KSOsYczhxTOCzeNZ ...
- css控制页面文字不能被选中user-select:none;
现象:html中可能有些地方不想让用户复制文字,或是用a标签做了个点击按钮,点快的时候文字会被选中,很丑,这个时候可以使用下面的方案禁止文字选中. 原因:鼠标点快了文字会被选中. 解决方案:不同的浏览 ...
- 用spin和edit控件来用spin控制edit里面小数的增减
1.响应SPIN的消息,就是点SPIN的上键头和下键头的消息,在这个消息里改变值是以0.1步进量增减.2.使用UpdateData(FALSE)来更新EDIT的关联的double型的变量. 创建步骤 ...
- CF939D Love Rescue
题意 给定两个长度为n的由小写字母组成的字符串 每次可以花费1的代价,指定两个字母,把其中一个全部变为另一个 求使两个字符串相同的最小花费 n <= 100000 因为谁变成谁没有关系反正相等就 ...
- PV(Pageviews)、访问(Visits)和访问者(Visitors)的区别
1. 在GA上,每个页面每次加载将被记为一次PV.举例来说,一次用户访问页面顺序为:页面A->页面B->页面A,然后离开了你的站点,那这次用户访问(Visits)的PV总计为3次. 2 ...
- [Xcode 实际操作]一、博主领进门-(14)在顶部状态栏显示风火轮以及为应用程序添加应用图标
目录:[Swift]Xcode实际操作 本文将演示在顶部状态栏显示风火轮. 主要用于在执行某个长时间动作时,提示用户耐心等待动作的执行. 在项目导航区,打开视图控制器的代码文件[ViewControl ...