获取站点根目录的方法
<br />function getRootPath(){<br /> var strFullPath=window.document.location.href;<br /> var strPath=window.document.location.pathname;<br /> var pos=strFullPath.indexOf(strPath);<br /> var prePath=strFullPath.substring(0,pos);<br /> var postPath=strPath.s
原创
2011-03-02 13:52:00 ·
462 阅读 ·
0 评论