2011-04-21 87 views
0

如何讓這件事情,我給人當的location.hash,在這樣的ADDRES酒吧輸出,例如希望..位置哈希

location.hash = "asd"; 

而且它將輸出#asd

但如何讓只輸出ASD

+1

那麼它不會是沒有''#一部分的哈希值。你應該使用'.href' – JohnP 2011-04-21 10:05:38

回答

0

我想你想:

location.href 
+0

其重新加載頁面,我不需要 – weardstuff 2011-04-21 10:09:01