- layui.use(['layer', 'laypage'], function(){
- var laypage = layui.laypage,layer = layui.layer;
- laypage.render({
- elem: 'page-content'
- ,count: $('#count').val() //数据总数
- ,prev: ''
- ,next: ''
- ,limit: 10
- ,curr: $('#page').val()//获取当前页码,设置此参数
- ,jump: function(obj, first){
- if(!first){
- getInformation(obj.curr)//刷新页面,获取数据
- }
- }
- });
- });