DataTables: Cannot read property style of undefined

前端 未结 11 723
时光取名叫无心
时光取名叫无心 2020-12-23 15:42

I am getting this error with the following:

jquery.dataTables.js:4089 Uncaught TypeError: Cannot read property \'style\' of undefined(…)
_fnCalculateColumnWi         


        
11条回答
  •  温柔的废话
    2020-12-23 16:28

    The problem is that the number of tags need to match the number of columns in the configuration (the array with the key "columns"). If there are fewer tags than columns specified, you get this slightly cryptical error message.

    (the correct answer is already present as a comment but I'm repeating it as an answer so it's easier to find - I didn't see the comments)

提交回复
热议问题