Using jquery mobile, how would I enable the ability to swipe right and go back to my main page? Sort of how putting in a back button enables and automatic return to the previous page, I would like that for swipe right.
You have to bind to swiperight
$(document).bind('swiperight', function () {
history.back();
});
I have created a Fiddle to show you, what you have to do. Look here, http://jsfiddle.net/wumm/WHT69/ !
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.