본문 바로가기
IT 실무/웹프로그래밍

[Jquery Mobile] $.mobile.changePage - 페이지 이동 메소드

by 지식id 2012. 11. 16.
반응형
href나 location.href를 사용하지 않고, Jquery Mobile의 자체 메소드를 사용 하려면 저렇게 쓴다.

$.mobile.changePage("원하는 페이지");

같은 파일 내에서의 이동은
$.mobile.changePage("#location");

다른 파일로의 이동
$.mobile.changePage("location.php");

효과주기
$.mobile.changePage("#location",{ transition: "slideup"});

기타 옵션
$.mobile.changePage("#location",{ transition: "slideup", reverse: true})

 

반응형

댓글