Home >Web Front-end >JS Tutorial >Partial refresh code based on jQuery capturing hyperlink events_jquery

Partial refresh code based on jQuery capturing hyperlink events_jquery

WBOY
WBOYOriginal
2016-05-16 17:54:011345browse
Partial refresh code based on jQuery capturing hyperlink events_jquery
核心代码:
复制代码 代码如下:




A Click Event Test









这只是我用jQuery做的一个测试,不知道Google是怎么实现的。例如,当点击一个超链接事件之后,页面通过iframe来进行局部刷新。而此时浏览器的地址栏应该会发生变化,这个如何改动呢?

我目前是通过修改 window.location 来使地址发生改变的,但是我只能改变#符号后面的内容吧。如果前面的内容也变了,可能会导致浏览器刷新整个页面?
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn