我正在使用 footable 作为索引页,我使用 slim 而不是 html,但是当我单击 footable 中的排序图标时,分页数字突然增加。
wrapper.wrapper-content.animated.fadeInRight
.row
.col-lg-12
.ibox.float-e-margins
.ibox-title
h5 List of Organizations
.ibox-content
table class="footable table table-stripped" data-page-size="10"
thead
tr
th Organization
th Type
tbody
- @organizations.each do |f|
tr
td= f.name
td= f.type
tfoot
tr
td colspan="2"
ul class="pagination pull-right"
javascript:
$(function() {
$('.footable').footable();
});
我做错了什么吗,请提前告诉我,谢谢。
最佳答案
wrapper.wrapper-content.animated.fadeInRight
.row
.col-lg-12
.ibox.float-e-margins
.ibox-title
h5 List of Organizations
.ibox-content
table class="footable table table-stripped" data-page-size="10"
thead
tr
th Organization
th Type
tbody
- @organizations.each do |f|
tr
td= f.name
td= f.type
tfoot
tr
td colspan="2"
ul class="pagination pull-right"
javascript:
$(function() {
$('.footable').footable();
});
关于ruby-on-rails - 使用 slim 时,脚踏分页无法正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35099007/