layui.use(['laypage', 'layer'], function(){
var laypage = layui.laypage
,layer = layui.layer;
laypage.render({
elem: 'pageFoot'
,count:"${pageBean.totalCount}"
,pages:"${pageBean.totalPage}"
,curr:"${pageBean.pageNum}"
,limit:"${pageBean.pageSize}"
,limits: [5,10,15,20]
,layout: ['count', 'prev', 'page', 'next', 'limit', 'refresh', 'skip']
,jump: function(obj,first){
if (!first) {
var pageSize=obj.limit;
var pageNum=obj.curr;
window.location.href="/queryAllBooks?pageSize="+pageSize+"&pageNum="+pageNum;//跳转链接
}
console.log(obj)
}
});
});