jQuery的功能(在其自己的作品):如何使用jQuery函數創建jQuery Mobile頁面幻燈片?
$("#firstpage").live('pageinit', function (evt) {
$("#firstpage").bind("swipeleft", function (e) {
alert ("you swiped left!");
});
});
jQuery Mobile的鏈接(也適用於自己的):
<a href="#secondpage" data-transition="slide">GO TO PAGE 2</a>
那麼,如何將二者結合起來?謝謝!
謝謝,這就是我一直在尋找。由於顯而易見的原因,它不如原生應用程序那麼敏捷,但仍然有用。 – orbwhacker 2012-08-03 15:57:09
@orbwhacker如果你想響應,你可以實現它,但你必須使用'touchstart' /'touchmove' /'touchend'。退房swipejs.com,這是一些漂亮的代碼。 jQuery Mobile事件「swipeleft」/「swiperight」只是沒有響應。 – Jasper 2012-08-04 16:34:26