【发布时间】:2013-08-15 17:23:15
【问题描述】:
我正在使用 jQuery tablesorter 插件 (http://mottie.github.io/tablesorter/docs/index.html)
tablesorter 正在工作,我可以使用此代码禁用对列的排序和过滤。
// Disable sorting and filtering on 1st column
$("table thead th:eq(0)").data("sorter", false).data("filter", false);
我怎样才能使用 .data 方法来做同样的事情?
$("table").tablesorter({
// sort on the 4th column, order asc
sortList: [[3,0]]
});
我的问题是我无法确定如何使用 sortList: [[3,0]] 和 .data 语法。任何建议将不胜感激。
【问题讨论】:
标签: tablesorter