0
我使用prettyphoto js。
標準腳本是:PrettyPhoto hash鏈接
function setHashtag(){
if(typeof theRel == 'undefined') return;
location.hash = theRel+'/'+rel_index+'/';
};
如果我將其更改爲:
function setHashtag(){
if(typeof theRel == 'undefined') return;
location.hash = theRel+'='+rel_index;
};
標識不工作。爲什麼?
顯然,如果我使用URL這樣的 -
http://mysite.ru/video/twd.php#id/1/ 它的工作原理和模式打開OK。 但當我嘗試打開這樣的鏈接 http://mysite.ru/video/twd.php#id=1 nothenig發生......只加載一個頁面。
您是否收到錯誤消息? – putvande
nope。 它適用於'/'和'=' ,但如果我分享此鏈接(例如在twitter中)與'/'鏈接打開模式窗口右,但與'='沒有任何反應 我希望你明白我) –