如果要实现if else if else 判断表达式,在thymeleaf要使用th:switch代替,th:case="*"表示默认,需写在最后
<div class="top" th:switch="${area}">
<div class="logo" th:case="'a'">
<img th:src="@{/static/images/logo-A.png}">
</div>
<div class="logo" th:case="'b'">
<img th:src="@{/static/images/logo-B.png}">
</div>
<div class="logo" th:case="*">
<img th:src="@{/static/images/logo-c.png}">
</div>
</div>
thymeleaf的textarea数据回显用th:text,th:value不能回显
FR:徐海涛(hunk Xu)
QQ技术交流群:386476712