0
我正在使用下面的代码来使用for循环与列表(我熟悉以下复制的其他语法以及)。第一个for循环对我来说不起作用,即使它是相同的列表。关于如何去解决此任何想法:for循环播放框架1.2.5(groovy模板)
#{list items:0..items.size(), as:'item'}${item}#{/list} //Not Working - I have tried moving the items.size out of the loop as well but it has not worked for me
这是工作在同一个列表:
#{list items, as:'item'}${item}#{/list}
任何想法/建议,为什么?提前致谢。
编辑:列表是用户定义的情况下(主要是控股字符串和整数)
现在,我正在使用for循环:for(int i = 0; i
2013-04-08 21:50:39
第二个语法有什么问题?你能解释一下你想用另一个来实现吗? – 2013-04-09 07:54:14
我现在想弄明白为什么我不能运行第一种语法。 – 2013-04-09 12:34:43