thymeleaf中的條件判斷用法

一.簡單的條件:「if」和「unless」html   th:if用法實例:less <table><tr><th>NAME</th><th>PRICE</th><th>IN STOCK</th><th>COMMENTS</th></tr><tr th:each="prod : ${prods}" th:class="${prodStat.odd}? 'odd'"><td th:text="${p
相關文章
相關標籤/搜索