简体   繁体   English

更新 url,但页面不刷新,如何?

[英]Updates url, but the page doesn't refresh, How?

https://www.petersons.com/search/schools?searchtype=12&page=3&result=15&searchterm=art https://www.petersons.com/search/schools?searchtype=12&page=3&result=15&searchterm=art

In the given website, when I change the page no (say, 4), it updates the url header, page=4, but the page itself is not reloaded.在给定的网站中,当我更改页面编号(例如 4)时,它会更新 url 标题,page=4,但页面本身不会重新加载。 Only the component of the page is refreshed.仅刷新页面的组件。

How is this achieved?这是如何实现的?

If I understand correctly, you have two ways.如果我理解正确,你有两种方法。 basically, you can use Ajax , or you can investigate more about Manipulating the browser history .基本上,您可以使用Ajax ,或者您可以调查更多有关操纵浏览器历史记录的信息 hope you get what you need.希望你得到你所需要的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM