1.截取长度
${bean.title[0..21]}

 

2.时间戳转 格式化时间 String 转 Date

设置时间格式:<#setting datetime_format="yyyy-MM-dd HH:mm"/>

转换:${bean.createTime?number?number_to_datetime}

 

3.list是否为空

<#if list?exists>

 

相关文章:

  • 2021-11-09
  • 2022-12-23
  • 2022-01-31
  • 2022-02-20
  • 2021-09-30
  • 2022-01-29
  • 2021-06-02
猜你喜欢
  • 2021-07-29
  • 2021-09-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-13
相关资源
相似解决方案