關於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>

將一個數組 根據條件選取其中符合條件的值進行循環


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM