thymeleaf th:if 案例
生活随笔
收集整理的這篇文章主要介紹了
thymeleaf th:if 案例
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
th:if是 thymeleaf模板引擎里面的語句
gt:great than(大于)> ge:great equal(大于等于)>= eq:equal(等于)== lt:less than(小于)< le:less equal(小于等于)<= ne:not equal(不等于)!= <tr th:each="user:${users}"> <td th:if="${user.num} eq '123'" th:text="${user.username}"> </td> </tr> user.num如果不等于123 就不會執行這行代碼總結
以上是生活随笔為你收集整理的thymeleaf th:if 案例的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: MySQL修改数据类型语句
- 下一篇: thymeleaf th:if else