datatable报错, Cannot read property 'style' of undefined

用datatable渲染表格的时候报错:
all.mini.js?v=v1.0:19 Uncaught TypeError: Cannot read property 'style' of undefined

at _fnCalculateColumnWidths (all.mini.js?v=v1.0:19)
at _fnInitialise (all.mini.js?v=v1.0:19)
at HTMLTableElement.<anonymous> (all.mini.js?v=v1.0:19)
at Function.each (jquery.min.js?v=v1.0:2)
at n.fn.init.each (jquery.min.js?v=v1.0:2)
at n.fn.init.DataTable [as dataTable] (all.mini.js?v=v1.0:19)
at n.fn.init.$.fn.DataTable (all.mini.js?v=v1.0:19)
at Object.dataTables (common.js?v=v1.0:655)
at Object.pp.teach.stucomevalmaintain.formInit (eval at globalEval (jquery.min.js?v=v1.0:2), <anonymous>:648:8)
at Object.success (eval at globalEval (jquery.min.js?v=v1.0:2), <anonymous>:612:34)
回复
阅读 6k
2 个回答

前后 columns 列没对上。

新手上路,请多包涵

表头和列没对上

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
宣传栏