如何让jquery 支持touchmove等滑动事件

2025-05-20 20:04:42
推荐回答(1个)
回答1:

jQuery Mobile Swipeleft
swipeleft 事件在用户在某个元素上从左滑动超过 30px 时被触发:
实例
$("p").on("swipeleft",function(){
alert("You swiped left!");
});