WS.PageQueryResult
封装QueryObject对象executeWithPage( < Function > callback)方法的分页查询结果。
方法
方法 | 返回值 | 描述 |
---|---|---|
autoLoadPage( < Integer > beginPage, < Integer > endPage, < Function > pageCallback, < Function > endCallback) | 自动遍历 beginPage到endPage之间的页面 | |
currentPage( < Function > callback) | void | 获取当前页数据 |
firstPage( < Function > callback) | void | 获取第一页数据 |
getCurrentPageNumber() | Integer | 返回当前页号 |
getPage( < Integer > pageNumber, < Function > callback) | void | 获取指定页数的数据 |
getPageSize() | Integer | 返回每个页面条数 |
getTotal() | Integer | 返回总条数 |
getTotalPage() | Integer | 返回总页数 |
gotoPage( < Integer > pageNumber, < Function > callback) | void | 跳转到指定页,会修改currentPageNumber |
lastPage( < Function > callback) | void | 获取最后一页数据 |
nextPage( < Function > callback) | void | 获取下一页数据 |
prePage( < Function > callback) | void | 获取上一页数据 |