小程序广告位
data:{
style_name: "block",
},
adClose() {
this.setData({
style_name: 'none'
})
},
<view style="display:{{style_name}}">
<ad unit-id="xxxx" bindclose="adClose"></ad>
</view>
data:{
style_name: "block",
},
adClose() {
this.setData({
style_name: 'none'
})
},
<view style="display:{{style_name}}">
<ad unit-id="xxxx" bindclose="adClose"></ad>
</view>