freemarker如何判断对象为空
1、if和”??“
<#if age??>
无年龄值
<#/if>
2、$和!
${age!'0'}
如果age为null,默认给'0'
文章标签 #if freemarker 文章分类 代码人生
freemarker如何判断对象为空
1、if和”??“
<#if age??>
无年龄值
<#/if>
2、$和!
${age!'0'}
如果age为null,默认给'0'
上一篇:浅谈jsp、freemarker、velocity区别
下一篇:freemarker.template.TemplateException:Error parsing including template
java 如何获取一个空的DATE对象
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M