thymeleaf if 條件判斷

gt:great than(大於)> <div th:if="${a gt 1}"></div> 表示:若是 a > 1 ge:great equal(大於等於)>= <div th:if="${a ge 1}"></div> 表示:若是 a >= 1 eq:equal(等於)== <div th:if="${a eq 1}"></div> 表示:若是 a == 1 lt:less than(小於
相關文章
相關標籤/搜索