2014-10-11 75 views

回答

1

只是Javascript,D3.js不是必需的。如果你想這樣做不刷新

window.location.search = "?name=BAR"; 

:試試這個

window.history.pushState("object or string", "Title", "/new-url"); 

參見:http://spoiledmilk.com/blog/html5-changing-the-browser-url-without-refreshing-page/

+0

好吧,我只是想更改文本(外觀),但不作要求,然後繼續使用當前腳本。這樣你提出一個新的請求。 – ngungo 2014-10-11 15:42:13

+0

看起來像一個安全噩夢。 – 2014-10-11 16:48:27

+0

Sameer Shemna,明白了。非常感謝你! :) veritas,爲什麼?你雖然沒有提出要求。對? – ngungo 2014-10-11 17:02:25

相關問題