在tablesorterpager插件中使用页码而不是4张图像进行分页——可能吗?
我正在使用 Tablesorter 插件和 tablesorterpager 插件。 我想知道默认情况下它会显示 4 张图像用于分页,分别是先移动、上移动、下移动和最后移动。 有没有办法显示页码而不是图像。 我已经尝试过,但无法弄清楚在哪里更改插件 js 文件中的代码。
谢谢
甜心
I am using Tablesorter plugin along with the tablesorterpager plugin.
I was wondering by default it shows 4 images for pagination purpose, Move first, move previous, move next and move last respectively.
Is there a way to show page numbers instead of images.
I have tried but was not able to figure out where to change the code in the plugin js file.
Thanks
Sweety
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
编辑
不是最优雅的解决方案,但我通过修改
updatePageDisplay
方法修改了分页器以包含一些页码。希望你能从这里拿走它。查看工作示例: http://jsfiddle.net/NiceGuy4263/TFL5p/
原始< /strong>
不确定我是否明白,您只是想删除图像?页码似乎默认显示。
http://tablesorter.com/docs/example-pager.html
删除这些按钮:
EDIT
Not the most elegant solution, but I modified the pager to include some page numbers by modifying the
updatePageDisplay
method. Hopefully you'll be able to take it from here.Checkout the working example: http://jsfiddle.net/NiceGuy4263/TFL5p/
ORIGINAL
Not sure I understand, you simply want to remove the images? The page numbers seem to show up by default.
http://tablesorter.com/docs/example-pager.html
To remove those buttons: