参考:http://zeptojs.com/
Touch
Touch events
The “touch” module adds the following events, which can be used with on and off:
tap — fires when the element is tapped.
singleTap and doubleTap — this pair of
events can be used to detect both single and double taps on the same
element (if you don’t need double tap detection, use tap instead).
longTap — fires when an element is tapped and the finger is held down for more than 750ms.
swipe, swipeLeft, swipeRight, swipeUp, swipeDown — fires when an element is swiped (optionally in the given direction)
tap 是 zepto自己封装的一个 点击事件不过一般项目 都引入zepto.min.js 就可以了,不用在引入其他的了
touch.js 是zepto的一个模块
不过已经压缩到 zepto.min.js了
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)