gpt4 book ai didi

javascript - 在 IE9 中使用 HTML5 pushState()

转载 作者:技术小花猫 更新时间:2023-10-29 11:49:25 25 4
gpt4 key购买 nike

有没有办法在 IE9 中使用 HTML5 History API (pushState)?如果有适用于所有其他浏览器的解决方案,那就太好了!

最佳答案

History.js

引用自 repo 协议(protocol):

History.js gracefully supports the HTML5 History/State APIs (pushState, replaceState, onPopState) in all browsers. Including continued support for data, titles, replaceState. Supports jQuery, MooTools and Prototype. For HTML5 browsers this means that you can modify the URL directly, without needing to use hashes anymore. For HTML4 browsers it will revert back to using the old onhashchange functionality.

关于javascript - 在 IE9 中使用 HTML5 pushState(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5527617/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com