【问题标题】:jQuery TableSorter Plugin(Uncaught TypeError: Cannot read property 'msie' of undefined)jQuery TableSorter 插件(未捕获的类型错误:无法读取未定义的属性“msie”)
【发布时间】:2015-08-01 10:31:26
【问题描述】:

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

我在我的标题中包含如下文件:

<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")});
});

错误:未捕获的类型错误:无法读取未定义的属性“msie”

有人知道解决办法吗?

【问题讨论】:

    标签: jquery pagination tablesorter


    【解决方案1】:

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

    发生错误是因为 $.browser.mise 函数在 jQuery 2.0 版本中已弃用,因此您应该使用旧的 jQuery 版本

    【讨论】:

    猜你喜欢
    • 2016-09-27
    • 2013-02-02
    • 2013-01-25
    • 1970-01-01
    • 2023-04-01
    • 2020-12-15
    • 1970-01-01
    • 2017-10-20
    • 1970-01-01
    相关资源
    最近更新 更多