如何完全更改url而无需将页面重新加载到新的url? [英] how to fully change url without reloading the page to new url?

查看:155
本文介绍了如何完全更改url而无需将页面重新加载到新的url?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里询问了许多有关不重新加载而更改url的问题。虽然我尝试了几乎所有方法,但无法完全更改页面的url(包括域名部分)而不重新加载新页面。我该怎么办?

I have gone through many questions asked here regarding changing url without reloading. Whilst I tried almost all of the methods, I am failed to fully change the url of a page including its domain name part without reloading the new page. How can I do that?

推荐答案

这是不可能的,这是有充分原因的。您可以在此处获取有关此信息的更多信息:同源政策

That is not possible for a good reason. You can get more info about this here: Same-origin policy

这篇关于如何完全更改url而无需将页面重新加载到新的url?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆