th:insert

可以实现在一个html中加载另外一个html
首先准备两个html,一个叫log_list.html(日志页面),page.html(分页页面)

log_list.html(日志页面)

thymeleaf th:insert的使用

page.html(分页页面)

thymeleaf th:insert的使用

log_list.html和page.html的相对路径

thymeleaf th:insert的使用
我下面要实现的是让page.html在log_list.html里面显示出来,修改两个html

修改后的log_list.html(日志页面)

thymeleaf th:insert的使用

修改后的page.html(分页页面)

thymeleaf th:insert的使用

效果如下:

thymeleaf th:insert的使用

相关文章:

  • 2021-12-07
  • 2021-06-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-04-15
  • 2021-12-01
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2021-04-27
相关资源
相似解决方案