0

如何解决问题,下一个代码在我的本地主机中运行良好,

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(); 现在工作并显示一条消息“请稍候,正在加载列表”无限期。

谢谢

4

0 回答 0