作者poototo (poototo)
看板Ajax
標題[問題] pushState
時間Thu Apr 17 20:08:08 2014
目前有個問題
在html檔內設好幾個ajax及對應的pushState跟url
產生換頁效果
不過沒有後台腳本的話,這些url直接連也沒有意義吧?
根本沒有對應的實體網頁檔
有可能解決嗎?
Thx
0417
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.200.49.88
※ 文章網址: http://webptt.com/m.aspx?n=bbs/Ajax/M.1397736492.A.561.html
1F:→ KeithYeh:url給hash ex: index.html#section 04/17 21:30
2F:→ poototo:對對,這樣就都能只用前台來判斷url及切換state,謝謝! 04/17 22:19