【发布时间】:2020-04-29 08:36:28
【问题描述】:
我想使用这个 JavaScript 循环的索引来迭代我的 thymeleaf 集成。例如:
for(let i=1; i<8; i++){
/*[# th:each="temp : ${arrayListTemperature[ i ] }"]*/
{x: new Date[(${temp})]},
/*[/]*/
}
得到
/*[# th:each="temp : ${arrayListTemperature1}"]*/
{ x: new Date[(${temp})]},
/*[/]*/
【问题讨论】:
标签: javascript thymeleaf