touch.js源码中有cancellongtap方法,是不是可以检测longtap结束时执行其他方法呢? function longTap() { longTapTimeout = null if (touch.last) { touch.el.trigger('longTap') touch = {} } } function cancelLongTap() { if (longTapTimeout) clearTimeout(longTapTimeout) longTapTimeout = null }
添加回答
举报
0/150
提交
取消