天天看点

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

$("#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

继续阅读