请教一个简单条件判断的问题?
在wxml文件中需要进行两个条件的同时判断&&,并且后面带了个else,发现运行不正常?是不是不支持这样的写法,还是需要拆分下来?新手求解
< view wx:if="{{nowtime > getuser.servicetime && getuser.servicetime != Null}}"> < button wx:if = "{{ userInfo }}" bindtap = "pay" class = 'zan-btn zan-btn--primary' >立即支付</ button > </ view > < view wx:else> < button formType = "submit" class = 'zan-btn zan-btn--primary' >提交修改</ button > </ view > |