<view bindtap='showButton'>点击</view> <view class="Mask {{MaskView?'hide':'show'}}">受控制的view</view>
data: { MaskView: true, }, showButton: function () { var that = this; that.setData({ MaskView: (!that.data.MaskView) }) },
<view bindtap='showButton'>点击</view> <view class="Mask {{MaskView?'hide':'show'}}">受控制的view</view>
data: { MaskView: true, }, showButton: function () { var that = this; that.setData({ MaskView: (!that.data.MaskView) }) },