我想要的是一个if-else in th:Thymeleaf中的每个陈述.
If currentSkill != null,然后显示包含内容的表格,否则'你没有任何技能'
这是没有if/else的代码:
<div th:each="skill : ${currentSkills}">
<table>
<tr><td th:text="${skill.name}"/></tr>
</table>
</div>
Run Code Online (Sandbox Code Playgroud)