jquery mobile如何实现滑动屏幕跳转页面

来源:互联网 发布:中国最大的unity3d论坛 编辑:程序博客网 时间:2024/05/30 05:17
$("#detail_center").bind("swipeleft", function(e){$.mobile.changePage ('index.html', 'fade', false, false);});
首先swipeleft
api如下:
swipe(划动):一秒内水平拖拽大于30PX,同时纵向拖曳小?0px的事件发生时触发

swipeleft(左划):划动事件为向左的方向时触发

swiperight(右划):划动事件为向右的方向时触发


changePage aip:

http://www.jqmapi.com/api/methods.html

0 0