1
我在jquery中用3列生成了一个表:数字,名称,营业额。像这样:如何在jquery中对表中的单个列进行排序
$(".tab").append("<tr><td>+ index + "</td><td>+ name + "</td><td>+ turnover + "</td></tr>);
我用“tablesorter”排序第3列。
$(".tab").tablesorter({
// sort on the seconde column , desc asc
sortList: [[2,-1]]
});
的问题是,我想我的第一列“指数”并没有改变,因为它表明只是从1数到7,但是当我做的第3列我的第一列排序也将changes.I像一些想法来解决这个问题,谢谢
http://stackoverflow.com/questions/7849558/sort-only-one-column-with-jquery-and-tablesorter –
http://stackoverflow.com/questions/8942974/how-to-disable-sorting-on-column-in-jquery-tablesorter –
http://stackoverflow.com/questions/4015320/jquery-tablesorter-plugin-disabling-sorting-on-some-columns –