bind事件都失效,不确定是微信版本的问题,苹果iOS12.2
< video class = 'detailVideo' wx:for = "{{ detail.videos }}" wx:for-index = "idx" wx:for-item = "item" wx:key = "{{item}}" src = '{{item}}' bindtap = 'previewVideo' bindlongpress = 'rmVideo' bindfullscreenchange = "changeVideoScreen" data-idx = "{{item}}" id = "video{{item}}" autoplay></ video >
|
rmVideo: function (e) {
var that = this ;
wx.showActionSheet({
itemList: [ '删除' ],
success(res) {
console.log(res);
that.setData({
[ "detail.videos" ]: Util.RmArrayByItem(that.data.detail.videos, e.currentTarget.dataset.idx)
})
},
fail(res) {
console.log(res.errMsg)
}
})
},
|
问题:我想要做的 bindlongpress 长按事件,触发删除弹窗,然后就发现所有的bind事件都没有进来