2017-02-18 145 views

回答

0
<if test='str=null or str=""'> 

你甚至可以尝试类似:

<if test='org.apache.commons.lang.StringUtils.isEmpty(str)'> 
+0

如何生根粉呢?

+0

简单的引号是用于字符比较的,所以它可以工作,但要小心意外的行为。 – blackwizard