tablesorter分页不对初始页面加载进行排序

时间:2012-10-16 21:43:53

标签: jquery pagination tablesorter

我找到了一个我正在尝试使用的表格分类器示例。

当页面加载时,表格不会在第一次尝试时排序或转到下一页。 但是如果我改变限制并尝试排序/转到下一页就可以了。 它也不会抛出任何错误。

这是链接: http://srikanthrajan.com/test-table/tablesorter.html

1 个答案:

答案 0 :(得分:3)

嘿,大家在这里看到工作演示http://jsfiddle.net/ZK6dZ/

您的LIMIT值为空。 :http://mottie.github.com/tablesorter/docs/example-pager.html

休息演示应符合原因:)

<强>码

$(function() {
    $("table").tablesorter({
        theme: 'blue',
        widthFixed: true,
        widgets: ['zebra']
    }).tablesorterPager({container: $("#pager")}); 
});​
相关问题