【发布时间】:2018-02-21 02:38:04
【问题描述】:
我是百里香的新手。
在 jsp 中问题很简单。但它在百里香中击败了我。
我想完成这个功能如下:
if (page.number<=1)
html like this:
<li class="q-pagination-disabled">Pre</li>
else
<li><a href="/pages/{page.number-1}">Pre</a></li>
但是我不能用 th:if,th:href,th:remove 等等来完成它。 有人知道怎么做吗?
【问题讨论】:
标签: spring jsp spring-mvc spring-boot thymeleaf