如何使用旧版本的 tablesorter jquery 插件修复 IE8 错误?
我正在尝试修复几年前使用较旧版本的 jquery 开发的网站的一些错误。此特定问题仅出现在 IE8 中的 jquery.tablesorter.min.js 脚本中。我不知道如何从缩小版本中看出使用的是哪个版本的tablesorter,但是jquery的版本是1.3.2。这是错误:
Message: 'undefined' is null or not an object
Line: 2
Char: 6697
它位于该行的这一部分:
function getCachedSortType(parsers,i){return parsers.type;};
使用 tablesorter 的表主体在此页面上为空(可以添加行)。它仍然具有 和
标记。我在关于同一问题的另一篇论坛帖子中读到问题可能是与
和
标记的位置相关。他们说使用表排序器的表必须位于该页面上的表单内。
但是,此控制器的布局还包含 标记,并且带有 tablesorter 表的特定页面的表单位于布局
内。这可能是问题的一部分吗?
I'm trying to fix some bugs with a site that was developed a few years ago, with an older version of jquery. This particular problem only occurs in IE8, in the jquery.tablesorter.min.js script. I don't know how to tell what version of tablesorter is used from the minified version, but the version of jquery is 1.3.2. Here is the error:
Message: 'undefined' is null or not an object
Line: 2
Char: 6697
it is in this section of the line:
function getCachedSortType(parsers,i){return parsers.type;};
The body of the table that uses tablesorter is empty on this page (it can have rows added to it). It still has the <thead>
and <tbody>
tags. I read at another forum post on the same problem that the problem could be related to the position of the <table>
and <form>
tags. They say that the table which uses the tablesorter must be inside the form, which it is on this page.
However, this controller's layout also contains <table>
tags, and the form for this particular page with the tablesorter table is located within the layout <table>
. Could this be part of the problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论