easyui datagrid pagination获得分页页码、总页数等信息
程序员文章站
2022-07-12 09:54:03
...
var grid = $('#datagrid');
var options = grid.datagrid('getPager').data("pagination").options;
var curr = options.pageNumber;
var total = options.total;
var max = Math.ceil(total/options.pageSize);
var options = grid.datagrid('getPager').data("pagination").options;
var curr = options.pageNumber;
var total = options.total;
var max = Math.ceil(total/options.pageSize);