将 jquery.datatables 插件与 ColVis 插件一起使用,我在删除列时收到此错误:
“无法读取未定义的属性‘sWidth’”。我一直无法在线找到解决此错误的方法。
我不确定是什么导致了这个错误,尽管我确实有一个修复程序,我想发布以帮助遇到此问题的其他人。
我正在使用来自 http://datatables.net/ 的 jquery.datatables 1.9.4 .
最佳答案
当列数在
<thead></thead>
不同于
中的列数$('#ls-table').DataTable($.extend({}, window.coonDataTableOptions, {
columns: [
<here>
]
}));
关于javascript - JQuery DataTables 和 ColVis 插件错误 "Cannot read property ' sWidth' of undefined",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20673825/