喜在我的應用我從一個DIV使用下面的代碼導航到另一個DIV下pagebeforeshow發送參數,
$.mobile.navigate("#formsEnterId", { info: "info about the #formsEnterIdhash" });
$("#formsEnterId").on('pagebeforeshow', function (event, data) {
console.log("Entered page before show::",data); //How to fetch the info here??
});
在pagebeforeshow事件中,我想獲取info屬性。我不知道如何獲取 info屬性。但是頁面導航是成功的。
另外我用$ .mobile.changepage但沒有運氣。
請有人協助我獲取pagebeforeShow事件中的info屬性。 我已經看到張貼在Pass parameter between pages using jquery mobile
相關的答案,但因爲我的網頁瀏覽的腳本和pagebeforeshow事件是在不同的封閉,不解決我的問題。
哪個版本JQM您使用的是? – Omar
@Omar謝謝你的回覆。我正在使用JQM 1.3.2 – VelNaga