如何在jQuery Mobile中向上滑动和向下滑动事件? [英] How to get swipe up and swipe down event in jQuery Mobile?

查看:155
本文介绍了如何在jQuery Mobile中向上滑动和向下滑动事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

能否请您告诉我如何在jQuery Mobile中获取向上滑动"和向下滑动"事件?我能够获得向右滑动"和向左滑动"事件.

Can you please tell me how to get the "swipe up" and "swipe down" events in jQuery Mobile? I am able to get "swipe right" and "swipe left" event.

我可以使用第三方库吗?您能否摆弄一个提醒/控制台来获得这些事件?

Can I use third party library? Can you please give one alert/console in fiddle to get these event?

推荐答案

与我的 字段

FIDDLE

请向您展示如何使用上下滑动事件.

just ill show you how to use swipe up and down events..

$('#mydiv').on('swipedown',function(){alert("swipedown..");} );
$('#mydiv').on('swipeup',function(){alert("swipeup..");} );

这篇关于如何在jQuery Mobile中向上滑动和向下滑动事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆