本文共 535 字,大约阅读时间需要 1 分钟。
th:insert
th:include th:replace
下面来给例子演示:
1、抽取公共片段© 2011 The Good Thymes Virtual Grocery2、引入公共片段 三种方式可以写的方式有下面两种:~{templatename::selector}:模板名::选择器~{templatename::fragmentname}:模板名::片段名
demo.html
demo
footer.html
footer
demo.html
demo
footer.html
footer
转载地址:http://sllzi.baihongyu.com/