2013-05-16 135 views
0

是否有可能通過代碼觸發頁面導航/轉換而不是使用JQuery Mobile的物理按鈕 - 我需要一個腳本根據邏輯重新引導頁面,並希望它使用流程轉換進行導航。Jquery Mobile - 腳本頁面導航/轉換

乾杯

回答

1

是的!它使用$.mobile.changePage('URL', { options });

經過link

0

$.mobile.changePage('URL', { options });現已棄用是可能的。 http://api.jquerymobile.com/jQuery.mobile.changePage/

的正確方法是使用:

  1. $.mobile.navigate("#bar", {transition: "slide", info: "info about the #bar hash"});
  2. $.mobile.pageContainer.pagecontainer("change", "target", {transition: "flow", changeHash: false, reload: true})

只是覺得我會回答從我從其他線程瞭解到這個問題。 我沒有足夠的聲望來放置其他鏈接。只需在Google上搜索代碼即可找到各自的StackOverflow線程。