javascript - 在 firefox/chrome 中禁用 history api

标签 javascript google-chrome firefox history.js

我想禁用 firefox 中的 history api,因此 history.js 将使用带有哈希的回退机制。这样就可以避免使用 IE 来测试/开发回退功能。

谢谢

最佳答案

伊恩,对不起。我误会你了。是的,设置为 null 有效。现在的问题是,history.js 自己进行测试以确定 history api 的可用性。我发现模拟哈希回退的唯一方法是修补历史库:Force History.js to use hash URL fallback

关于javascript - 在 firefox/chrome 中禁用 history api,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16569970/

相关文章:

firefox - 使用斜体时line-height和实际高度冲突

javascript - 访问被拒绝 - IE8 Polyfills

javascript - d3 在追加圆圈时跳过数组中的第一个索引

javascript - 不安全的 CSP 值 "' unsafe-eval '"in directive ' script-src'

javascript - 双击/选择单词时在 Chrome 扩展中运行函数

javascript - jQuery Post 无法在 OS X Chrome 中工作

windows - 修改 exe 以使用命令行参数启动而不创建快捷方式

javascript - 为 div 中的所有元素注册事件

javascript - i18n - 如何在 application.hbs 中使用它?

javascript - 为 Web 应用程序添加 iOS 语音识别支持?