jQuery数据表问题 [英] jQuery datatables issue

查看:112
本文介绍了jQuery数据表问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用 jQuery数据表插件时,为什么会收到此错误?


k is undefined-style typeof e.saved_aaSorting ==undefined)



解决方案

我发布了这个答案来记录一些事情以备将来参考,希望能帮助别人下线。



使用页面(一点RTFM):



为了使DataTables能够正常运行,为了
目标表的HTML必须以一个良好的形式,以
'thead'和


在我的情况下,< thead> < tbody> 部分缺少。糟糕。


When using the jQuery datatables plugin, why am I getting this error?

"k is undefined" -style typeof e.saved_aaSorting=="undefined")

解决方案

I posted this answer to document something for future reference for myself, I hope it will help someone else on down the line.

From the usage page (a little 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.

In my case, the <thead> and <tbody> sections were missing. Oops.

这篇关于jQuery数据表问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆