我收到以下错误:
.tableSorterPager is not a function.
我在下面的代码中找不到我的错误:
<script type="text/javascript">
$(function() {
$("table")
.tableSorter({widthFixed: true, widgets: ['zebra']})
.tableSorterPager({container: $("#pager")});
});
</script>
答案 0 :(得分:3)
错误表示在调用tableSorterPager插件之前未初始化它。
可能的原因:
<script type="text/javascript" src="/path/to/jquery.tablesorter.pager.js"></script>
)。 tableSorter pager是tableSorter的 separte 插件。