jeecg 分页精华
int row = dataGrid.getRows(); int page = dataGrid.getPage(); int firstRow = row * (page - 1); int maxRow = row * page; dataGrid.setResults(ruleList); dataGrid.setTotal(ruleList.size()); if (maxRow > ruleList.size()) { maxRow = ruleList.size(); } dataGrid.setResults(ruleList.subList(firstRow, maxRow)); TagUtil.datagrid(response, dataGrid);