在jqGrid中查找当前页码 [英] Finding current page number in jqGrid
本文介绍了在jqGrid中查找当前页码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在jqGrid中找到当前页码(当然使用jQuery).另外,我怎么知道总共有多少页.
How can I find the current page number in jqGrid (using jQuery of course). Also how do I know how many pages are there in total.
推荐答案
这应该做到:
$("#sp_1").text(); // total pages
$(".ui-pg-input").val(); // current page
编辑:我在 docs 中找到了一种更好的方法当前页面,但总页面数我什么都没看到. (单击操作->获取方法)
I found a better way in the docs for the current page but I didn't see anything for the total page count. (Click Manipulating -> Get Methods)
$('#your_grid').getGridParam('page'); // current page
这篇关于在jqGrid中查找当前页码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文