我有数据表,我设置如下。在页面加载数据网格显示为处理但我没有设置为加载。
Integer.MAX_VALUE
我收到错误var oTable = $('#dataGrid').dataTable({
"order": [[ 1, "asc" ]],
"aoColumnDefs": [ { "bSortable": false, "aTargets": [ 0,1 ] }],
"processing": true,
"serverSide": true,
"ajax": "getReport.php",
"fnServerData": function ( sSource, aoData, fnCallback ) {
$.ajax( {
"dataType": 'json',
"type": "POST",
"url": "getReport.php",
"data": 'val1=' + $("value1").val()+'&val2=' + $("value2").val(),
"success": fnCallback
} );
}
});
$("#submit").click(function(){
oTable.fnReloadAjax();
});
。我希望仅在单击提交按钮时填充数据表?