关于thymeleaf的if多条件判断
Posted lst619247
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了关于thymeleaf的if多条件判断相关的知识,希望对你有一定的参考价值。
<ul class="nav nav-second-level"> <li th:each="cmenu : ${menu.children}"> <a class="J_menuItem" th:if="${cmenu.text!= ‘角色管理‘&&cmenu.text!= ‘系统菜单‘}" href="graph_echarts.html" th:text="${cmenu.text}" th:href="${cmenu.attributes.url}">系统管理</a> </li> </ul>
将一个数组 根据条件选取其中符合条件的值进行循环
以上是关于关于thymeleaf的if多条件判断的主要内容,如果未能解决你的问题,请参考以下文章
Thymeleaf常用语法:条件判断 ifswitch case