在数据表中转到下面的页码选项?接下来,上一步并需要转到

时间:2017-09-06 14:10:51

标签: javascript

默认情况下,分页应该有goto选项。不确定在示例中是否难以或故意不显示。有人可以帮助如何在数据表中添加转到页码吗?

示例在https://datatables.net/

中给出

感谢。

1 个答案:

答案 0 :(得分:0)

答案:

1. Include input.js file
2. $(document).ready(function() {
       $('#example').dataTable({
          "pagingType": "input"
       });
   });
3. Two flavours..For text box #2 and for list box kind of page..include below..you can choose option above and below
    $(document).ready(function() {
      $('#example').dataTable({
           "pagingType": "listbox"
      });
    });

参考

  

https://datatables.net/plug-ins/pagination/input

     

How to use the JQuery DataTables "input" plugin with DataTables 1.10

     

How to change the Page # in DataTables in the Pagination bar?

     

Desired page in pagination with DataTables

     

http://datatables.net/plug-ins/pagination/select

     

https://datatables.net/plug-ins/pagination/input