gpt4 book ai didi

jquery - 移动到另一个网址

转载 作者:行者123 更新时间:2023-12-01 03:26:02 25 4
gpt4 key购买 nike

我继承了一些移动到另一个页面的代码,其中页面是一个网址。 $('body').html(页面);它可以工作,但无法使用 IE 后退按钮返回到上一页。

我正在寻找更好的方法移动到另一个网址,但保留 IE 后退按钮中的所有页面。

想法?

最佳答案

使用 JavaScript 函数

window.location.replace()

关于jquery - 移动到另一个网址,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5094474/

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