Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Pagination Footable插件分页不工作_Pagination_Footable - Fatal编程技术网

Pagination Footable插件分页不工作

Pagination Footable插件分页不工作,pagination,footable,Pagination,Footable,我已经回顾了给出的可折叠分页示例 但是分页在我的情况下不起作用 下面是我的代码 <table id="exptab" class="table demo footable-loaded footable default" data-page-size="5"> <thead> <tr> <th>Month</th> <th>Savings</th> </tr&

我已经回顾了给出的可折叠分页示例 但是分页在我的情况下不起作用

下面是我的代码

<table id="exptab" class="table demo footable-loaded footable default" data-page-size="5">


  <thead>
    <tr>
      <th>Month</th>
      <th>Savings</th>
    </tr>
  </thead>
  <tbody >
    <tr>
      <td>January</td>
      <td>$100</td>
    </tr>
    <tr>
      <td>February</td>
      <td>$80</td>
    </tr>
      <tr>
      <td>January</td>
      <td>$100</td>
    </tr>
      <tr>
      <td>January</td>
      <td>$100</td>
    </tr>
      <tr>
      <td>January</td>
      <td>$100</td>
    </tr>
      <tr>
      <td>January</td>
      <td>$100</td>
    </tr>
      <tr>
      <td>January</td>
      <td>$100</td>
    </tr>


  </tbody>
  <tfoot class="hide-if-no-paging">
  <tr>
    <td colspan="5" class="text-center">
        <ul class="pagination">
        </ul>
    </td>
  </tr>
</tfoot>

</table>

<script type="text/javascript">
    $(function () {
        debugger;
        $('table').footable();



    });

    </script>

在这里,对于分页,我甚至添加了一个ul class=pagination,但是这也不起作用。请有人指出缺少了什么。

请确保您已经包含了分页加载项javascript文件。

几个月前我终于解决了这个问题。不知怎的,把他们的档案放在可移动的储藏室里对我来说从来都不起作用。我对他们的例子如何巧妙地工作感到困惑,而我的却没有! 所以最后我决定访问它们的源代码,直接获取示例使用的文件,并在代码中引用它们

瞧!它开始像一个魅力:

请注意:我已经多次比较了示例中的所有引用,没有任何内容不是我使用的……但是他们用于示例的文件起到了作用,而他们的存储库中的文件对我从来都不起作用