只有在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)