代码之家  ›  专栏  ›  技术社区  ›  vikitor

表排序寻呼机

  •  6
  • vikitor  · 技术社区  · 16 年前

    我想做的是这样的:

    //Before deleting 
    var page = //Here is what I'm asking for, a way to get the page that is on now
    var rowsPerPage = //A way to obtain the size option of the pager
    //Delete row
    
    //Refresh table and then a way to set the 
    ///page where I was again.
         $("#TST").tablesorter(...)
                     .tablesorterPager({
                         container: $("#TSTPager"),
                         positionFixed: false,
                         size: 5
                     });
    

    非常感谢你,

    2 回复  |  直到 16 年前
        1
  •  7
  •   Community Mohan Dere    9 年前

    如果单击tablesorter标记,您会发现其他几个开发人员正在努力解决这类问题,例如 Need Help with Jquery TableSorter Pager plugin .

    在那里的答案和对其他类似问题的答复中,建议使用 DataTables.net

    是的,在这一点上考虑更改工具是令人沮丧的,但是对分页问题的沮丧程度,以及对另一个工具的好评,表明您可以通过更改工具更快地解决这个问题,并使您的项目回到正轨。

        2
  •  0
  •   David Albert    11 年前

    这是一个非常老的问题,但不管它值多少钱,寻呼机插件现在有一个名为savePages的选项,即使在刷新时也可以保存分页状态。

    本期包括: https://github.com/Mottie/tablesorter/issues/444

    推荐文章