Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 JXLS1,由于性能更好,我尝试迁移到 JXLS2。
在我的 xls 模板中,我使用:
<jx:out expr="if(SOME COMPARISON) {PRINT THIS} else {PRINT THAT}"/>
这是如何使用 JXLS2 完成的?
您可以使用JEXL三元条件运算符条件吗?if_true :表达式中的 if_false。
因此,对于您的示例,一个单元格可以包含
${SOME COMPARISON ? PRINT THIS : PRINT THAT}