如何使用旧版本的 tablesorter jquery 插件修复 IE8 错误?

发布于 2024-10-05 12:09:52 字数 761 浏览 0 评论 0原文

我正在尝试修复几年前使用较旧版本的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文