首页 > 代码库 > EasyUI知识点杂记

EasyUI知识点杂记

1.easyui获取datagrid分页组件的当前pageSize和pageNumber方法:

var grid = $(‘#grid‘);

var pager = grid.datagrid(‘getPager‘);

var pageOpts = pager.data(‘pagination‘).options;

var pageSize = pagerOpts.pageSize;

var pageNumber = pagerOpts.pageNumber;