1
我有一個可排序的mootools表,並希望創建一個或兩個標題列unsortable。 我該怎麼做。我的代碼如下:Mootools可排序表
var myTable = new HtmlTable({
properties: {border: 0, cellspacing: 0},
headers: ['Column1', 'Column2', 'Column3', 'Column4'],
rows: [],
zebra: true,
sortable: true
});
myTable.inject($('column2'));
myTable.sort(0);
我想排序'Column1'和'Column2'。
標題:['Column1','Column2','Column3','
或者我應該在哪裏放置nosort類? – user889349
將它添加到您的標記中,而不是JS – BenLanc