// wxml
<view bindtouchstart="bindTouchStart" bindtouchend="bindTouchEnd" bindlongtap="bingLongTap" bindtap="bindTap"></view>
// js
bindTouchStart: function(e) {
this.startTime = e.timeStamp;
}
bindTouchEnd: function(e) {
this.endTime = e.timeStamp;
}
bindTap: function(e) {
if(this.endTime - this.startTime < 350) {
console.log("点击")
}
}
bingLongTap: function(e) {
console.log("长按");
}