微信小程序學習(10) —— 視圖層條件渲染和for循環

使用wx:if進行視圖層的條件渲染       示例: wxml:使用view <!--index.wxml--> <button bindtap="EventHandle">按鈕</button> <!-- wx:if --> <view wx:if="{{boolean==true}}">     <view class="bg_black"></view> </view> <view wx:
相關文章
相關標籤/搜索