(资料图片仅供参考)

1. 循环的写法

#foreach($category in $categories)

.....

#end

2.velocity不支持循环的跳出。这是veolicity的bug

本文到此讲解完毕了,希望对大家有帮助。