jQuery dataTables:为什么sAjaxSource没有走我的路?

时间:2013-05-03 08:10:47

标签: jquery jquery-datatables filepath

默认路径如下:

"sAjaxSource": "http://datatables.net/release-datatables/examples/server_side/scripts/jsonp.php",
    "fnServerData": function( sUrl, aoData, fnCallback ) {
        $.ajax( {
            "url": sUrl,
            "data": aoData,
            "success": fnCallback,
            "dataType": "jsonp",
            "cache": false
        } );
    }

但是当我改变它时:

`"sAjaxSource": "/libclient_final/library/viewtarrif.php",
    "fnServerData": function( sUrl, aoData, fnCallback ) {
        $.ajax( {
            "url": sUrl,
            "data": aoData,
            "success": fnCallback,
            "dataType": "jsonp",
            "cache": false
        } );
    }`

数据没有返回,表格页眉和页脚崩溃

0 个答案:

没有答案