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
相關文章
相關標籤/搜索