atrr“page_gap” will_paginate没用吗?
按照代码,
<%= will_paginate @bls, :container => false, :previous_label => "上一页", :next_label => "下一页", :page_gap => "......", :inner_window => 0, :outer_window => 0 %>
除了“page_gap”之外的所有内容(如 previous_label)都有帮助,页面上的间隙不是“......”,而是“页面间隙”。我使用的是3.0.2版本(最新)。
Following the code,
<%= will_paginate @bls, :container => false, :previous_label => "上一页", :next_label => "下一页", :page_gap => "......", :inner_window => 0, :outer_window => 0 %>
Everything (like previous_label) except "page_gap" helps, the gap on the page is not "......" but is "Page gap". I use the version 3.0.2(the lastest).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
https://github.com/mislav/will_paginate/pull/213
如果有自定义的页间距,则应使用它来代替默认的页间距。
更新:
尝试使用配置文件。这非常有用。 此处
https://github.com/mislav/will_paginate/pull/213
If there is a customized page gap, it should be used instead of the default one.
Update:
Just try use config file. It's very useful. Here