我使用DataTables来表示数据,并使用multi-filter select过滤单个列,这有效fine
/* Add a select menu for each TH element in the table footer */
$("tfoot th").each(function (i) {
this.innerHTML = fnCreateSelect(oTable.fnGetColumnData(i));
$('select', this).change(function () {
oTable.fnFilter($(this).val(), i);
});
});
但添加滚动时,会在选择选项fiddle here时删除选择选项。
"sScrollY": "70%",
"sScrollX": "100%"