分页 layui.use(['laypage', 'layer'], function(){ var laypage = layui.laypage ,layer = layui.layer; layui.use(['laypage', 'layer'], function() { var laypage = layui.laypage ,layer = layui.layer; laypage.render({ elem: 'demo1', count:res.da
layui.use(['laypage', 'layer'], function(){ var laypage = layui.laypage ,layer = layui.layer; layui.use(['laypage', 'layer'], function() { var laypage = layui.laypage ,layer = layui.layer; laypage.render({ elem: 'demo1', count:res.data.total , limit:15, curr:res.data.currentPage,// 当前页 jump: function(e, first){ //触发分页后的回调 if(!first){ //一定要加此判断,否则初始时会无限刷新 $(".table-bordered th input").prop('checked',false); $('.yichuquanxuan').removeClass('greenfont'); del_user('',e.curr);// 跳转的点击页面 } } }); }); });