jxls2 中 jx:each 中 jx:each 的语法是什么
what is the syntax for jx:each within jx:each in jxls2
我使用 jxls 1.0.5 有一段时间了,最近才看到需要迁移到 2.2.5,
在 jxls 1.0.5 中,我可以在另一个语句中嵌入一个语句。
<jx:forEach items="${homeDwellers}" var="homeDweller">
<jx:forEach items="${homeDweller.chores}" var="chore">
</jx:forEach>
</jx:forEach>
如何使用 2.2.5 完成此操作,我只为 jx:each 输入评论?
A1: jx:each(items="homeDwellers" var="homeDweller" lastCell="B3")
A2: jx:each(items="homeDweller.chores" var="chore" lastCell="B2")
??
您可以在单个多行单元格注释中定义任意数量的内部命令
jx:each(items="homeDwellers" var="homeDweller" lastCell="B3")
jx:each(items="homeDweller.chores" var="chore" lastCell="B2")
它们将按相同的顺序嵌入。
请参阅 documentation 中的类似示例。
您可能还想查看 jxls-demo 项目中的 comment_markup_demo.xls 模板,它演示了各种标记选项。
我使用 jxls 1.0.5 有一段时间了,最近才看到需要迁移到 2.2.5,
在 jxls 1.0.5 中,我可以在另一个语句中嵌入一个语句。
<jx:forEach items="${homeDwellers}" var="homeDweller">
<jx:forEach items="${homeDweller.chores}" var="chore">
</jx:forEach>
</jx:forEach>
如何使用 2.2.5 完成此操作,我只为 jx:each 输入评论?
A1: jx:each(items="homeDwellers" var="homeDweller" lastCell="B3")
A2: jx:each(items="homeDweller.chores" var="chore" lastCell="B2")
??
您可以在单个多行单元格注释中定义任意数量的内部命令
jx:each(items="homeDwellers" var="homeDweller" lastCell="B3")
jx:each(items="homeDweller.chores" var="chore" lastCell="B2")
它们将按相同的顺序嵌入。 请参阅 documentation 中的类似示例。
您可能还想查看 jxls-demo 项目中的 comment_markup_demo.xls 模板,它演示了各种标记选项。