用jQuery检测iPhone的滑动 [英] Detecting iPhone Swipe with jQuery
本文介绍了用jQuery检测iPhone的滑动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
例如;
if(swipe.direction =='left'){
function();
}
解决方案
使用jQueryMobile,您可以使用多个事件,比如 swipe
,甚至 swipeleft
, swiperight
,点击
等。
http://jquerymobile.com/test/docs/api/events.html
I'm simply looking for a listener that will detect the swipe of a finger on a touch device.
For example;
if (swipe.direction == 'left' ) {
function();
}
解决方案
With jQueryMobile you can use several events, such as swipe
, or even swipeleft
, swiperight
, tap
, etc.
http://jquerymobile.com/test/docs/api/events.html
这篇关于用jQuery检测iPhone的滑动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文