2

在 scribd 上上传了一份文件

为了便于导航,我在文档中包含了链接。在 Chrome 中打开时效果很好,但在 Firefox 3.6 中效果不佳。

它在 Firefox 中显示页面上的 href 路径。有没有人有任何想法?

4

1 回答 1

0

我遇到过同样的问题。#我最终在属性中寻找哈希字符window.location.href并手动捕获哈希:

var hash = window.location.href.indexOf('#') == 
    -1 ? "" : window.location.href.substring(window.location.href.indexOf('#') + 1);
于 2011-12-28T14:15:14.240 回答