freemarker list中自增变量

2025-04-29 10:57:58
推荐回答(1个)
回答1:

<#list psStartTime as week>


周${week_index+1}



这样就可以了。xx_index是freemarker循环里的固有变量,起始值为零。