总结一下wx:if判断失效的原因
1.`
<view class="allbut1" wx:if="downflag==1"> <view bindtap="down" class='but1'>上传数据</view> </view>
没用{{}}<view class="allbut1" wx:if="{{downflag==1 }}"> <view bindtap="down" class='but1'>上传数据</view> </view>
false后有空格
再有再加吧
总结一下wx:if判断失效的原因
1.`
<view class="allbut1" wx:if="downflag==1"> <view bindtap="down" class='but1'>上传数据</view> </view>
没用{{}}<view class="allbut1" wx:if="{{downflag==1 }}"> <view bindtap="down" class='but1'>上传数据</view> </view>
false后有空格