如果要实现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>