thymeleaf

image.png

thymeleaf常用标签的使用方法
基本使用方式

对象引用方式

时间类型转换

text与utext
text:不解析
utext:解析


image.png

url

引入静态资源文件js/css

条件判断 th:if

th:unless与th:if

循环 th:each

th:switch与th:case

image.png
image.png

简写user:*代替user


image.png
image.png

引入js:


image.png

form表单:


image.png
image.png
image.png
image.png
image.png
image.png

你可能感兴趣的:(thymeleaf)