thymeleaf for循环第一次后中断循环

 

thymeleaf for循环第一次后中断循环
    <div  th:each="processList, iterStat : ${dict.processList}" >
        <th:block th:if="${iterStat.index == 0}">
        <span  style="width:80%;display: block;" class="progressBar" id="spaceused1">[[${processList.workRange}]]
        </span>
        </th:block>
        <br>
        <th:block th:unless="${iterStat.index == 0}">
            <!-- 在第一次循环后中断循环 -->
            <th:block th:break></th:block>
        </th:block>
    </div>

 

posted @ 2023-06-05 09:24  张载zz  阅读(6)  评论(0编辑  收藏  举报