thymeleaf if elseif 多条件判断

若是要实现if else if else 判断表达式,在thymeleaf要使用th:switch代替,th:case="*"表示默认,需写在最后html <div class="top" th:switch="${area}"> <div class="logo" th:case="'a'"> <img th:src="@{/static/images/l
相关文章
相关标签/搜索