Wx:if and wx:else

the decision condition is that multiselect=0 and multiselect=1, display different content respectively, how to use it in Wechat"s development?

Mar.01,2021

<view wx:if="{{multiselect == 0}}"> 0 </view>
<view wx:if="{{multiselect == 1}}"> 1 </view>


<view wx:if="{{multiselect == 0}}"> 0 </view>
<view wx:elif="{{multiselect == 1}}"> 1 </view>

your if else is an inverse relation. You 0 1 do not have any opposite relationship

.

wx:if= "{{multiselect==0}}" wx:elif= "{{multiselect==1}}"

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36ea2-2c04a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36ea2-2c04a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?