2013-07-11 2 views

답변

1

몇 시간 후 전환을 두 페이지를 만들고 호출하는 방법을 알 수있는 것은

<div data-role="page" id="splash"> 
     <div data-role="content"> 
      <img src="images/splash.png" alt="startup image" style="width: 100%; height: 100%" /> 
     </div> 
    </div> 


    <div data-role="page" id="home"> 
     <div data-role="header" data-backbtn="false"> 
      <h1>New page!!</h1> 
     </div> 
     <div data-role="content"> 
    New content!<br/> 
    Test!! 
     </div> 
    </div> 

그런 다음 변경 페이지

$('#splash').on('pageshow', function(){ 
     var hideSplash = function() { 
      $.mobile.changePage($("#home")); 
     }; 
     setTimeout(hideSplash, 2000); 
    }); 
이 스크립트를 사용