2022-07-15 微信小程序长按事件 微信小程序长按事件 <view bindtouchstart="touchstart" bindtouchend="touchend">123456</view> //touch start touchstart: function(e) { this.startTime = e.timeStamp; console.log(this.startTime) }, //touch end touchend: function(e) { this.endTime = e.timeStamp; console.log(this.endTime) console.log("endTime - startTime = " + (this.endTime-this.startTime)); if (this.endTime - this.startTime>600){ console.log('长按') ... 2022年07月15日 826 阅读 0 评论