xml中没有<else>
标签,只有<if>
标签,如果要if-else的话,需要使用<choose><when test=""></when><otherwise></otherwise></choose>
choose可以里面when里或别的层级嵌套choose,when里也可以嵌套if,if也可以写choose外面实现其他需求
未证实:if数字判断相等需要用toString的方式,字符串可以ssss==‘xxxx’直接来
如果判断字段不是空的,除了!=null 还需要 !=’’
xml编译显示必须声明元素else
最新推荐文章于 2024-04-19 17:13:20 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)