我正在尝试使用滑动事件在页面之间进行导航,以下是我的代码。
$( document ).on( "swipeleft", page, function() {
$.mobile.changePage( "#"+next, { transition: "slide" },false );
}); // Navigate to next page when the "next" button is clicked
$( ".control .next", page ).on( "click", function() {
$.mobile.changePage( "#"+next, { transition: "slide" },false );
});
但是在Android设备上,滑动功能不能正常工作,请帮助解决问题,非常感谢。
提前致谢。
swipeleft
不是默认的jQuery事件。你可能需要使用其他库来实现它... hammarjs是一个流行的选择。 - Ashish Kumar