1.访问map中的key
${key}
2.访问pojo中的属性
Student对象。学号、姓名、年龄
${key.property}

3.取集合中的数据
<#list studentList as student>
${student.id}/${studnet.name}
</#list>


4.取循环中的下标
<#list studentList as student>
${student_index}
</#list>

5.判断
<#if student_index % 2 == 0>
<#else>
</#if>

6.日期类型格式化

7.Null值的处理

8.Include标签
<#include “模板名称”>

相关文章:
-
2021-04-05
-
2021-10-13
-
2021-10-23
-
2021-09-29
-
2022-02-10
-
2022-02-10
-
2022-02-10
猜你喜欢
-
2022-02-10
-
2022-12-23
-
2022-12-23
-
2022-02-10
-
2022-12-23
-
2021-08-15
相关资源
-
下载
2021-06-06
-
下载
2023-01-05
-
下载
2023-01-01
-
下载
2023-02-27