【发布时间】:2013-07-27 17:17:15
【问题描述】:
我使用漂亮的 js。
标准脚本是:
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/ 它有效,并且模态打开正常。 但是当我尝试打开这样的链接时 http://mysite.ru/video/twd.php#id=1 nothenig 发生...只加载一个页面。
【问题讨论】:
-
不。 '/' 和 '=' 可以正常工作,但如果我分享此链接(例如在 twitter 中),带有 '/' 的链接会打开模态窗口,但使用 '=' 没有任何反应,我希望你能理解我)
标签: jquery prettyphoto