在移动放大的视口时,swipeleft 和 swiperight 事件会触发

作者: teo1978创建于 2019年9月26日更新于 2019年9月26日

示例代码: $(document).on("swipeleft", function(e) { console.log("检测到向左滑动"); }); $(document).on("swiperight", function(e) { console.log("检测到向右滑动"); }); html 中的 viewport 元标记:

内容来源: jquery-archive/jquery-mobile