我使用的是3.1.4版本的prettyphoto。(http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/) 我想从URL中删除 "#prettyphoto[iframe]/number/"。我已将deeplinking设置为false,但这并没有帮助。我明白可能是以下功能的问题:
function getHashtag(){url=location.href;hashtag=(url.indexOf('#prettyPhoto')!==-1)?decodeURI(url.substring(url.indexOf('#prettyPhoto')+1,url.length)):false;return hashtag;};
function setHashtag(){if(typeof theRel=='undefined')return;location.hash=theRel+'/'+rel_index+'/';};
function clearHashtag(){if(location.href.indexOf('#prettyPhoto')!==-1)location.hash="prettyPhoto";}
有什么想法吗?