1、如果为空值的话,长度肯定小于1,所以可以转而判断字符串的长度来确定是否为空:
<#if report.report.remarks?length gt 1>
说明:即判断remarks的长度是否比1大。
1、如果为空值的话,长度肯定小于1,所以可以转而判断字符串的长度来确定是否为空:
<#if report.report.remarks?length gt 1>
说明:即判断remarks的长度是否比1大。
转载于:https://my.oschina.net/weiweiblog/blog/476168