th:each內部進行條件判斷來更改樣式

th:each內部進行條件判斷來更改樣式 需求 : 遍歷集合並每隔兩個換行 <div> <input type="checkbox" th:each ="p,pIndex:${pList}" th:utext ="${pIndex.index%2==0?p.name:'p.name+'</br>'}" </div>
相關文章
相關標籤/搜索