thymeleaf循環遍歷 屬性

轉:http://www.javashuo.com/article/p-pscflkyc-dh.html th:each屬性用於迭代循環,語法:th:each="obj,iterStat:${objList}" 迭代對象能夠是Java.util.List,java.util.Map,數組等; iterStat稱做狀態變量,屬性有: index:當前迭代對象的index(從0開始計算)
相關文章
相關標籤/搜索