我已经按照此处给出的可足分页示例进行了操作, 但是分页在我的情况下不起作用。
以下是我的代码
<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" 但这也不起作用。有人可以指出缺少什么。