thymeleaf
mytt_10566
这个作者很懒,什么都没留下…
展开
-
thymeleaf(3) - Iteration
官方文档(2.x):https://www.thymeleaf.org/doc/tutorials/2.1/usingthymeleaf.html#iteration 翻译的官方文档,可以直接看文档里的说明,更能有自己的体会和收获。1. Iteration基础1.1 使用th:each对于我们的产品列表页,我们将产品列表放到request上下文中(这里已经与SpringBoo...原创 2018-08-08 00:48:50 · 246 阅读 · 0 评论 -
thymeleaf(4) - 条件判断
官方文档:https://www.thymeleaf.org/doc/tutorials/2.1/usingthymeleaf.html#conditional-evaluation 以下是翻译的官方文档,建议自己阅读下文档。1. 简单条件:if和unless有时候,我们需要仅仅在满足一定条件才显示代码片段。例如,在产品表格列中,当产品有评论信息的时候添加一个链接用于查看评论详情,...原创 2018-08-08 23:41:15 · 4159 阅读 · 0 评论 -
thymeleaf(5) - 标准表达式语法
官方文档:https://www.thymeleaf.org/doc/tutorials/2.1/usingthymeleaf.html#standard-expression-syntax参考博客:http://www.ityouknow.com/springboot/2016/05/01/spring-boot-thymeleaf.html 首先,我们看一下标准表达式功能的快速摘要...原创 2018-08-11 10:43:43 · 1567 阅读 · 0 评论