我想在这样的Thymeleaf模板上设置一些条件,但它不起作用.
<li th:if="${entry.description != null && entry.owner == true}" th:each="entry : ${entryList}" class="group">
Run Code Online (Sandbox Code Playgroud)
如何正确使用此代码?
Aes*_*eir 12
更换
"${entry.description != null && entry.owner == true}"
Run Code Online (Sandbox Code Playgroud)
同
"${entry.description != null and entry.owner == true}"
Run Code Online (Sandbox Code Playgroud)
供参考,您可以查看以下主题:http: //forum.thymeleaf.org/How-to-have-multiple-condition-in-an-th-if-tag-td4025931.html
让我知道你怎样去
| 归档时间: |
|
| 查看次数: |
10568 次 |
| 最近记录: |