1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
| var total = "${scoreRecordUtil.totalRecord}";
showRecord(1,10);
layui.use(['laypage','jquery'], function() {
var laypage = layui.laypage,$ = layui.$; laypage.render({ elem: $('.page')[0] ,count: total , limit: 10 , limits: [10, 20, 30] , curr: 1 , groups: 5 , prev: '上一页' , netx: '下一页' , first: 1 , last: 100 , layout: ['prev', 'page', 'next','limit','refresh','skip'] , jump: function (obj, first) { if (!first) { $('tbody').empty(); showRecord(obj.curr,obj.limit); } } }); })
|