码上敲享录 > thymeleaf > th:each thymeleaf模板引擎

th:each thymeleaf模板引擎

上一章章节目录下一章 2019-06-23已有3147人阅读 评论(0)

th:each迭代在各个标签的写法

<div th:each="u:${user}" >

   <input th:value="${u.userName}" />

   <span th:text="${u.userId}"></span>

   <a th:href="@{/sign/details(userId=${u.userId})}" >

    </a>

    <div th:text="${u.userName}"></div>

</div>


向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
1

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交