Datatable报错Uncaught TypeError: Cannot read property 'cell' of undefined

使用Datatables时,报出错误 
Datatable报错Uncaught TypeError: Cannot read property 'cell' of undefined
仔细想想,是因为我在columns里加入了id,并设置visible:false 
但是却没在下面的HTML部分多加一个 th 
虽然我觉得因为id是隐藏的,不用加上 
th id /th 
但事实上是,这是错误的,必须数目一样。