<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)
})
},
.hide{
display: none;
}
.show{
display: hide;
}
|
请发表评论