1
我正在使用History.js,並有一個問題:我想更改slash之前的URL部分,例如在目錄中瀏覽時的github(https://github.com/browserstate/History.js/ )。 我的代碼現在看起來像這樣:history.js Github像URL更改 - 用斜槓更改部分網址
History.pushState(null, "Program od: "+programBack, "program/"+day);
當我的按鈕多次推,網址更改爲: 程序/程序/程序/ 2011年6月10日,因爲history.js只改變後的部分/。
有沒有辦法在History.js中處理這個問題? 感謝