无法读取 jquery 数据表中未定义的 属性 'mData'
Cannot read property 'mData' of undefined in jquery datatable
使用 jquery 动态创建 table 时出现错误
Uncaught TypeError: Cannot read property 'mData' of undefined
我使用 JavaScript
创建了 table
document.createElement('table');
document.createElement('thead');
document.createElement('tbody');
然后通过以下方式调用 jQuery 数据 table:
$(mytableid).DataTable()
我显示了 table。但是我没有得到 table 过滤器和分页。
感谢您考虑我的问题。
我找到了上述问题的解决方案。
在创建新数据 table 之前,我删除了它的容器 div 并创建了一个新数据。它有助于删除先前创建的数据 tables 及其相关的相同签名的 html 标签。
我认为这就是该错误的原因....
使用 jquery 动态创建 table 时出现错误
Uncaught TypeError: Cannot read property 'mData' of undefined
我使用 JavaScript
创建了 tabledocument.createElement('table');
document.createElement('thead');
document.createElement('tbody');
然后通过以下方式调用 jQuery 数据 table:
$(mytableid).DataTable()
我显示了 table。但是我没有得到 table 过滤器和分页。
感谢您考虑我的问题。
我找到了上述问题的解决方案。
在创建新数据 table 之前,我删除了它的容器 div 并创建了一个新数据。它有助于删除先前创建的数据 tables 及其相关的相同签名的 html 标签。
我认为这就是该错误的原因....