跳转到同一页面显示的是不同标签的内容,如何实现

WBOY
Release: 2016-06-23 14:26:58
Original
1498 people have browsed it

http://home.html5cn.org/
html5网站登录之后,点击“消息”和“提醒”跳转的都是同一页面,但是能在不同的标签切换是怎么实现的?


回复讨论(解决方案)

还要登录...你不会说的是锚点吧

还要登录...你不会说的是锚点吧
不是锚点,是一个链接跳转到其它页面;比如页面A有两个链接(A1,A2),页面B有两个标签(B1,B2);点击A1和A2都跳转到页面B,但是跳转之后A1对应的是B1标签内容,A2对应是B2内容。

这样描述不清,还是给个在线样例吧。

还要注册,太麻烦了

window.location.href = "HTMLPage2.htm?#"+id;//id为控件的id
你可以试试

我也是被这个问题困扰了很久啊,有没有大神说下怎么解决?

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!