2016-09-26 102 views

回答

1

发现这个答案在这里:https://datatables.net/forums/discussion/32575/uncaught-typeerror-cannot-set-property-dt-cellindex-of-undefined

A simple mistake, the table header had a column " with no title, but the column did not exist in the table itself. I could not see it missing (because o no title and no borders).

有用吗?

+0

谢谢你的快速回复......让我看看 –

+0

它似乎没有解决.....你知道我该如何检查我的表格thead标记td是否与我的表格匹配tbody td? –

+0

你可以在这里发送你的代码https://jsbin.com,这样我可以帮助你更好吗? – a7madgamal

3

我们有基于列的从0

在我们的餐桌开始数在DataTable中初始化了同样的错误,有什么固定的,我们正在改变(目标),我们有4列,以便taget:3 ]

$.extend($.fn.dataTable.defaults, { 
     columnDefs: [{ 
      targets: [ 3 ] 
     }] 
}); 
6

基本上这个问题出来了,因为错过了匹配计数th到td。请确保第t次比赛的数量。希望这会帮助你。

+1

这基本上适合我。添加的列数应与初始化的数字相同。 – Paolo

相关问题