我是这样使用jquery-tablesorter
的:
$(document).ready(function() {
$("table").tablesorter();
// set sorting column and direction, this will sort on the first and third column the column index starts at zero
var sorting = [[0,0],[2,0]];
// sort on the first column
$("table").trigger("sorton",[sorting]);
// return false to stop default link action
return false;
});
我的表中共有 5 列。如何禁用最后一列的排序?