css - frameset的问题
PHP中文网
PHP中文网 2017-04-17 13:47:57
0
1
315
PHP中文网
PHP中文网

认证高级PHP讲师

全部回复 (1)
PHPzhong

使用 _top 窗口,会整个页面跳转。

2.html    
 aaa 

还可以通过location.hash,location.search,cookie来保存最后的页面,都可以通过修改 1.html实现,其他页面不用改动。

1.html     
    

点击3.html后,三种方式的区别:
location.hash /1.html#/3.html
location.search /1.html?/3.html
document.cookie /1.html (不变)

如果都是用新的浏览器,都支持HTML5,还有localStorage、sessionStorage等地方可以保存,路径也是 /1.html不变。

    最新下载
    更多>
    网站特效
    网站源码
    网站素材
    前端模板
    关于我们 免责声明 Sitemap
    PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!