使用 jQuery datatables plugin 时,为什么会出现此错误?
"k is undefined" -style typeof e.saved_aaSorting=="undefined")
最佳答案
我发布这个答案是为了记录一些东西供自己将来引用,我希望它能帮助其他人。
来自usage page (一点 RTFM):
In order for DataTables to be able to function correctly, the HTML for the target table must be laid out in a well formed manner with the 'thead' and 'tbody' sections declared.
在我的例子中,<thead>
和 <tbody>
部分丢失了。糟糕。
关于javascript - jQuery 数据表问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8405731/