Home  >  Article  >  Backend Development  >  javascript - 手机腾讯网的文章详情页返回列表页是如何实现的?

javascript - 手机腾讯网的文章详情页返回列表页是如何实现的?

WBOY
WBOYOriginal
2016-06-06 20:28:371499browse

列表页

<code>http://info.3g.qq.com/g/s?aid=infocenter&i_f=172&sid=&&icfa=home_touch&iarea=132</code>

详情页

<code>http://info.3g.qq.com/g/sicfa=infocenter&aid=wechat_ss&id=wechat_20150909011371&pos=wechat_cs</code>

如题,并且点击右上角的返回按钮,是返回之前的列表页的该文章的位置,而不是页面头部开始,

回复内容:

列表页

<code>http://info.3g.qq.com/g/s?aid=infocenter&i_f=172&sid=&&icfa=home_touch&iarea=132</code>

详情页

<code>http://info.3g.qq.com/g/sicfa=infocenter&aid=wechat_ss&id=wechat_20150909011371&pos=wechat_cs</code>

如题,并且点击右上角的返回按钮,是返回之前的列表页的该文章的位置,而不是页面头部开始,

有谁知道吗.................

其实这是浏览器记住的,不是页面实现的,当然一些特殊的用法可以通过window.scrollTo来完成

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