<
view
class =
"btn"
bindlongtap=
"longTap"
bindtouchstart=
"touchStart"
bindtouchend=
"touchEnd">
长按
</
view
>
longTap:
function(e) {
console.log(
"long tap")
wx.showModal({
title:
'提示',
content:
'长按事件被触发',
showCancel:
false
})
},