小编use*_*575的帖子

如果 - 其他在Thymeleaf中的每个陈述

我想要的是一个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)

spring-mvc thymeleaf

5
推荐指数
1
解决办法
3万
查看次数

标签 统计

spring-mvc ×1

thymeleaf ×1