补充提交
This commit is contained in:
@@ -21,8 +21,8 @@
|
|||||||
current:1, //当前第几页
|
current:1, //当前第几页
|
||||||
prevCls:'prev', //上一页class
|
prevCls:'prev', //上一页class
|
||||||
nextCls:'next', //下一页class
|
nextCls:'next', //下一页class
|
||||||
prevContent:'<', //上一页内容
|
prevContent:'«', //上一页内容
|
||||||
nextContent:'>', //下一页内容
|
nextContent:'»', //下一页内容
|
||||||
activeCls:'active', //当前页选中状态
|
activeCls:'active', //当前页选中状态
|
||||||
coping:false, //首页和尾页
|
coping:false, //首页和尾页
|
||||||
homePage:'', //首页节点内容
|
homePage:'', //首页节点内容
|
||||||
@@ -80,7 +80,7 @@
|
|||||||
}
|
}
|
||||||
if(current >= opts.count * 2 && current != 1 && pageCount != opts.count){
|
if(current >= opts.count * 2 && current != 1 && pageCount != opts.count){
|
||||||
var home = opts.coping && opts.homePage ? opts.homePage : '1';
|
var home = opts.coping && opts.homePage ? opts.homePage : '1';
|
||||||
html += opts.coping ? '<a href="javascript:;" data-page="1">'+home+'</a><span>...</span>' : '';
|
html += opts.coping ? '<a href="javascript:;" data-page="1">'+home+'</a><span class="dian-dian">...</span>' : '';
|
||||||
}
|
}
|
||||||
var start = current - opts.count,
|
var start = current - opts.count,
|
||||||
end = current + opts.count;
|
end = current + opts.count;
|
||||||
@@ -97,7 +97,7 @@
|
|||||||
}
|
}
|
||||||
if(current + opts.count < pageCount && current >= 1 && pageCount > opts.count){
|
if(current + opts.count < pageCount && current >= 1 && pageCount > opts.count){
|
||||||
var end = opts.coping && opts.endPage ? opts.endPage : pageCount;
|
var end = opts.coping && opts.endPage ? opts.endPage : pageCount;
|
||||||
html += opts.coping ? '<span>...</span><a href="javascript:;" data-page="'+pageCount+'">'+end+'</a>' : '';
|
html += opts.coping ? '<span class="dian-dian">...</span><a href="javascript:;" data-page="'+pageCount+'">'+end+'</a>' : '';
|
||||||
}
|
}
|
||||||
if(current < pageCount){//下一页
|
if(current < pageCount){//下一页
|
||||||
html += '<a href="javascript:;" class="'+opts.nextCls+'">'+opts.nextContent+'</a>'
|
html += '<a href="javascript:;" class="'+opts.nextCls+'">'+opts.nextContent+'</a>'
|
||||||
|
|||||||
Reference in New Issue
Block a user