我想问是否有办法在初始化中过滤数据表服务器端?
我试过这样的代码:
function listTable(arg1, param2, value3) {
var searchTbl = $("#tblsearch").dataTable({
"bRetrieve": true,
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "server-side.php",
"bPaginate": false,
"bLengthChange": false,
"bFilter": false,
"bSort": true,
"bInfo": false,
"bAutoWidth": false
});
searchTbl.filter(arg1, param2, value3);
searchTbl.fnDraw();
}
但它没有用。