在Freemarker中不支持三目表达式(bool ? true: false ),但是有替代其功能的freemarker表达式。
可以使用?string和?then进行类三目的操作。
bool ?string('yes',no)
bool ?then('yes','no')
更具体的直接点击下方资源链接,看官方文档的详细说明吧。
标签:string,Freemarker,no,用法,bool,三目,yes From: https://www.cnblogs.com/XingXiaoMeng/p/17169297.html