2013-02-12 3 views
0

ipad 용 웹 응용 프로그램에서 스 와이프 기능을 설정하면 사용자가 손가락을 오른쪽으로 스 와이프하면 마지막 페이지로 이동합니다. 즉, 자바 스크립트는 특정 페이지로 변경됩니다 나는 JQM 변경 페이지 기능을 통합 할 수 있도록 내가 더 정확한 기능을하기를 원한다면, 마음에 그와 지금이jquery mobile swipe functions

<script> 
$(document).bind('swiperight', function() { 
     history.back(); 
    });</script> 

처럼 보인다?

<script> 
$(document).bind('swiperight', function() { 
     $.mobile.changePage("#home", { transition: "slide"}); 
    });</script> 

data-direction = "reverse"속성은 어디에 넣을까요?

답변

1

그것은 다음과 같이해야합니다 : 그것은 작동해야처럼

$(document).bind('swiperight', function() { 
    $.mobile.changePage("#home", { 
     transition: "slide", 
     reverse: true 
    }); 
}); 
+0

이 보이지만, 몇 가지 이유가없는 나는 주위 엉망 거와 무슨까지 볼 수있다. 감사 – mhartington