<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>
將一個數組 根據條件選取其中符合條件的值進行循環