0
我跟着這個鏈接:jquery mobile - 如何檢索從two.html中的one.html傳遞的數據?
Pass parameter between pages using jquery mobile
但是,所有它做的是
1) pass a parameter to a new HTML page(one.html->two.html)
2) Read what's been passed from one.html in one.html before page disappears.
- but i want to read the data in two.html, not in one.html
不是嗎?我可能錯了。但這就是代碼似乎在做的事情。
在one.html,我傳遞的數據two.html這樣的:
$(document).delegate("#page1", "pageinit", function() {
$.mobile.changePage('two.html', {
dataUrl : "two.html?paremeter=123",
data : { 'paremeter' : '123' },
reloadPage : true, changeHash : true
});
});
如何我檢索two.html這個數據?