小编skf*_*lfk的帖子

TypeError:'undefined'不是只在Safari中使用Tablesorter的函数

只有在safari我得到错误:

TypeError:undefined不是函数(评估'$("table").tablesorter')

在所有其他浏览器中它都有效.这是我的javascript代码,我把头文件推到了jquery和tablesorter javascript的脚本中.那么我该如何解决这个问题呢?为什么它只在Safari中而不在任何其他浏览器中?

 <script>

$(function() {

  // call the tablesorter plugin
$("table").tablesorter({
    theme : 'jui',
    headerTemplate : '{content}{icon}',
    // hidden filter input/selects will resize the columns, so try to minimize the 
          etc
Run Code Online (Sandbox Code Playgroud)

javascript safari jquery tablesorter

6
推荐指数
1
解决办法
9928
查看次数

标签 统计

javascript ×1

jquery ×1

safari ×1

tablesorter ×1