【发布时间】:2019-05-29 15:21:12
【问题描述】:
是否有可能打破流体中的 for 循环?
<f:for each="{subItem.image}" as="imageItem">
<f:if condition="{selectedCategory} == {subItem.imagecategory}">
Do Stuff
Exit loop
</f:if>
</f:for>
我需要循环处理几张图像,然后在类别匹配时渲染一个,然后退出循环,因为我只想渲染具有匹配类别的第一张图像。
【问题讨论】: