[已解决]如何在不重新加载或刷新页面的情况下更改URL? [英] [Solved]How to change URL without reloading or refreshing a page?

查看:203
本文介绍了[已解决]如何在不重新加载或刷新页面的情况下更改URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个使用HTML和jQuery设计的图片库.在这里,当我导航到下一个或上一个图像时,该页面没有重新加载,但是图像正在更改.我对此感到满意.现在,我想更改URL和图像而不刷新页面.任何帮助将不胜感激.

我不想在.Net中使用它.静态(HTML)页面需要它.

在此先感谢..

Hi Guys,

I''m having an image gallery which is designed in HTML and jQuery. Here, when i am navigating to next or previous images, the page is not reloading but, the images are getting changed. I am happy with this. Now, i want to change the URL and image without refreshing the page. Any help would be appreciated.

I dont want it in .Net. Need it for static (HTML) pages.

Thanks in Advance..

推荐答案

AFAIK,要更改URL,您需要进行完整的回发.浏览器中的URL显示与内容几乎没有什么不同.
URL重写可能有所帮助,但我认为也需要完整的回发.
AFAIK, to change URL, you need to do full postback. URL display in browser is little different from content.
URL Re-writing might have helped but I think that too would need a complete postback.


这篇关于[已解决]如何在不重新加载或刷新页面的情况下更改URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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