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

查看:23
本文介绍了如何在 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天全站免登陆