美好的一天!我正在使用jQuery Tablesorter在表中进行分页。但是,在完成here之后,我的表格仍然不会分页。当我改变限制时,表格中的行数不会改变。我正在使用Play Framework btw。分页将无法使用jQuery
<link rel="stylesheet" href="/assets/stylesheets/style.css" type="text/css" />
<link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script type="text/javascript" src="/assets/javascripts/jquery.tablesorter.js"></script>
<script type="text/javascript" src="//tablesorter.com/addons/pager/jquery.tablesorter.pager.js"></script>
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
请帮我解决这个问题。非常感谢你!
编辑:
我刚看到这个错误Uncaught TypeError: undefined is not a function
在该行.tablesorter
。
Uncaught TypeError: undefined is not a function viewTags:24
(anonymous function) viewTags:24
fire jquery-1.10.2.js:3048
self.fireWith jquery-1.10.2.js:3160
jQuery.extend.ready jquery-1.10.2.js:433
completed
你可以为你的代码设置一个jsfiddle吗? – TheMohanAhuja
还有2个jquery库加载:一个来自tablesorter.com和其他 - 来自您当地的商店。顺便说一句,你的第二个jQuery库是相当老 – AVK
请提供控制台日志。 – Innovation