Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/386.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 引导选项卡-在“启动”时更改选项卡;“后退”;点击按钮_Javascript_Jquery_Twitter Bootstrap_Tabs_Html5 History - Fatal编程技术网

Javascript 引导选项卡-在“启动”时更改选项卡;“后退”;点击按钮

Javascript 引导选项卡-在“启动”时更改选项卡;“后退”;点击按钮,javascript,jquery,twitter-bootstrap,tabs,html5-history,Javascript,Jquery,Twitter Bootstrap,Tabs,Html5 History,我使用类似于google+选项卡的bootstrap3选项卡实现: 与google+类似,每次用户单击新选项卡时,我都会使用history.pushState()更改URL 问题是: 假设您查看了以下3个选项卡: https://plus.google.com/109537483127696013335/posts https://plus.google.com/109537483127696013335/about https://plus.google.com/10953748312769

我使用类似于google+选项卡的bootstrap3选项卡实现:

与google+类似,每次用户单击新选项卡时,我都会使用history.pushState()更改URL

问题是:

假设您查看了以下3个选项卡:

https://plus.google.com/109537483127696013335/posts
https://plus.google.com/109537483127696013335/about
https://plus.google.com/109537483127696013335/photos
浏览器历史记录中有3项,如果单击“上一步”按钮,您将返回到/about,然后返回/posts,但页面内容将保持不变(/photos),而不是更改回正确的选项卡


google+中存在此问题,我希望“后退”按钮的性能更好,以获得更好的用户体验,如何解决此问题?

请添加更多的InfoPloble副本