gpt4 book ai didi

jquery - 使用 jQuery 检测 iPhone 滑动

转载 作者:行者123 更新时间:2023-12-03 18:35:34 24 4
gpt4 key购买 nike

我只是在寻找一个能够检测手指在触摸设备上滑动的监听器。

例如;

 if (swipe.direction == 'left' ) {
function();
}

最佳答案

通过 jQueryMobile,您可以使用多种事件,例如 swipe,甚至 swipeleftswiperighttap

http://jquerymobile.com/test/docs/api/events.html

关于jquery - 使用 jQuery 检测 iPhone 滑动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10603157/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com