gpt4 book ai didi

jquery - 在jqGrid中查找当前页码

转载 作者:行者123 更新时间:2023-12-03 21:49:42 25 4
gpt4 key购买 nike

如何在 jqGrid 中找到当前页码(当然使用 jQuery)。另外我怎么知道总共有多少页。

最佳答案

这应该可以做到:

$("#sp_1").text(); // total pages

$(".ui-pg-input").val(); // current page

编辑:我在 docs 中找到了更好的方法对于当前页面,但我没有看到任何总页数。 (Click Manipulating -> Get Methods)

$('#your_grid').getGridParam('page'); // current page

关于jquery - 在jqGrid中查找当前页码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1349700/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com