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
Release: 2016-05-16 17:54:01
Original
1350 people have browsed it
Partial refresh code based on jQuery capturing hyperlink events_jquery
核心代码:
复制代码 代码如下:




A Click Event Test









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

我目前是通过修改 window.location 来使地址发生改变的,但是我只能改变#符号后面的内容吧。如果前面的内容也变了,可能会导致浏览器刷新整个页面?
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template