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