Thymeleaf的属性之遍历迭代、条件判断

以前一直用的是freemaker,如今公司的问题回答模板使用Thymeleaf来实现,那么就来记录一下Thymeleaf的一些循环的语法html 普通循环 <tr th:each="prod : ${prods}"> <td th:text="${prod.name}">Onions</td> <td th:text="${prod.price}">2.41</td> <td th:t
相关文章
相关标签/搜索