" type="text/javascript"> " type="text/javascript"> 我的页-6ren">
gpt4 book ai didi

jQuery TableSorter 插件(未捕获类型错误 : Cannot read property 'msie' of undefined)

转载 作者:行者123 更新时间:2023-12-01 01:06:52 24 4
gpt4 key购买 nike

我正在使用这个插件进行分页。 this

我在 header 中包含文件,如下所示:

<script src="<?php echo base_url('_assets/js/jQuery-2.1.3.min.js');?>"></script>
<script src="<?php echo base_url('_assets/js/tablesorter/jquery.tablesorter.js');?>" type="text/javascript"></script>
<script src="<?php echo base_url('_assets/js/tablesorter/addons/pager/jquery.tablesorter.pager.js');?>" type="text/javascript"></script>

我的页面脚本:

$(document).ready(function() {
$("#p_history")
.tablesorter({widthFixed: true, widgets: ['zebra']})
.tablesorterPager({container: $("#pager")});
});

Error :Uncaught TypeError: Cannot read property 'msie' of undefined

有谁知道解决办法吗?

最佳答案

正如我所见,您正在使用 2.0 jquery 版本,并且可能使用旧 jquery 版本的 tablesorter 插件..

发生错误是因为 jQuery 2.0 版本中已弃用 $.browser.mise 函数,因此您应该使用旧版 jQuery <= 1.3。或者使用兼容的分拣机plunin。

关于jQuery TableSorter 插件(未捕获类型错误 : Cannot read property 'msie' of undefined),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30345231/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com