关于touchend问题

发布于 6 年前作者 phe8473 次浏览最后编辑 6 年前来自 ask

小程序退出后进入微信后台,再重新进入小程序,touhend无效但是touchstat有效,有点懵

1 回复
humin
humin1 楼5 年前

<!–index.wxml–>

<view class=“container” bindtouchstart=“touchstart” bindtouchend=“touchend”>{{text}}</view>

//index.js

Page({

data: {

text:‘XXX’

},

onLoad: function () {

},

touchstart: function (e) {

console.log(‘touchstart’)

this.setData({

text:‘touchstart’

})

},

touchend: function (e) {

console.log(‘touchend’)

this.setData({

text: ‘touchend’

})

}

})

测试了没有你说的那个问题啊?是不是touchstat事件卡住了!