所以我有一個數據表正在被用戶輸入填充。當我進入屏幕(在我提交任何東西之前),我不會在螢火蟲中發出任何警告。在我輸入表格並提交之後。我自動返回到同一頁面,只有表格中有我提交的信息。此時是我收到錯誤的時候。這是它:Firebug中的數據表警告
DataTables warning (table id = 'table'): Unexpected number of TD elements. Expected 5
and got 6. DataTables does not support rowspan/colspan in the table body, and there
must be one cell for each row/column combination.
似乎很明顯,但我沒有rowspan或colspan在我的桌子上。所以我不知道問題是什麼。另外,這裏是我的設置爲數據表:
var table1 = {};
table1 = O_LANGUAGE = {sEmptyTable: "There is nothing here."};
$(document).ready(function() {
var $table= $("#table");
$table.dataTable({
"aaSorting": [ [0,'desc'] ], "oLanguage" : bsFaReq.O_LANGUAGE, "bLengthChange": false, "bFilter": false, "bAutoWidth": false, "bInfo": false, "bPaginate": false
});
好了,所以它運行良好,但我不能把它拿出來,直到我得到這樣的警告固定的,任何幫助表示讚賞,感謝你提前。