如何解决问题,下一个代码在我的localhost中运行良好,
var table = $('#table').dataTable({
'bProcessing': true,
'bServerSide': true,
'sServerMethod': "post",
//'oLanguage': oLanguage, //http://datatables.net/ref (search: oLanguage)
'sPaginationType': 'full_numbers',
'sAjaxSource': 'data.php',
'aaSorting': [[1, 'asc']],
'aoColumnDefs': [
{
"bSortable": false, "aTargets": [0]
}, {
"aTargets": [0],
"fnCreatedCell": function(nTd, sData, oData, iRow, iCol) {
$(nTd).html(sData);
}
}
]
});
$('mybutton').click(function() {
table.fnDraw(); //the problem is there
});
如果我放到远程服务器,函数table.fnDraw();现在工作并显示一条消息“请等待,列表正在加载”无限期。
谢谢