简体   繁体   中英

DataTables warning: table id=tbl - Invalid JSON response. about this error, please see http://datatables.net/tn/1

i made an html file and j query inside data table and ajax to call the data from PHP file

$(document).ready(function() { var table=$('#tbl').dataTable({ "serverSide":true, "ajax": { url: "search.php", dataSrc: "" }, columns:[ { data: "donor_Id"

    },    {
            data: "fname"

        },
        {
            data: "bloodg"

        },
        {
            data: "gender"
        },{
            data: "email"

        }

    ]});

});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM