【发布时间】:2014-07-07 10:02:51
【问题描述】:
我想要的是 Thymeleaf 中 th:each 语句中的 if-else。
If currentSkill != null,然后显示带有内容的表格,否则'你没有任何技能'
这是没有 if/else 的代码:
<div th:each="skill : ${currentSkills}">
<table>
<tr><td th:text="${skill.name}"/></tr>
</table>
</div>
【问题讨论】:
标签: spring-mvc thymeleaf