-1
在Windows 8應用,history.back()
和history.forward()
無法執行,所以我想恢復在陣列中的所有記錄即可使用$.mobile.changePage();
如何使用Jquery mobile解析/瀏覽歷史記錄?
但「如何解析/瀏覽歷史?」
想法?
Thx。
在Windows 8應用,history.back()
和history.forward()
無法執行,所以我想恢復在陣列中的所有記錄即可使用$.mobile.changePage();
如何使用Jquery mobile解析/瀏覽歷史記錄?
但「如何解析/瀏覽歷史?」
想法?
Thx。
爲什麼不只是創建一個客戶端JavaScript數組,並添加一個新的條目,每當頁面加載事件觸發在jQuery手機API?
var myPageHistory = [];
$(document).bind('pageload', function(event, data){
myPageHistory.push(data.url); // add the page to the history array
})
Thx,好主意:) – Slevin 2012-07-11 16:02:35
看看https://github.com/balupton/History.js/這可能會幫助你鞏固和'History.pushState'具有'History.forward'和'History.back' – potench 2012-07-11 15:55:11
出於安全原因,你無法真正做到。否則,您訪問的每個網站都可以訪問您訪問過的網頁,這對大多數人來說都是違反隱私的。 – jeschafe 2012-07-11 16:02:46