window.location.hash
来源:互联网 发布:网络被动攻击 编辑:程序博客网 时间:2024/06/07 13:15
<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> </head> <body> <h1>子页面</h1> <div></div> <script type="text/javascript"> window.onload = function () { var parentWindow = window.parent; //监听自身hash的改变 window.onhashchange = function(event){ document.querySelector('div').innerHTML = window.location.hash; } }; </script> </body></html>02.html <!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> </head> <body> <h1>子页面</h1> <div></div> <script type="text/javascript"> window.onload = function () { var parentWindow = window.parent; //监听自身hash的改变 window.onhashchange = function(event){ document.querySelector('div').innerHTML = window.location.hash; } }; </script> </body></html>
阅读全文
0 0
- window.location.hash解析
- window.location.hash解析
- window.location.hash详解
- window.location.hash详解
- 有关window.location.hash
- window.location.hash
- window.location.hash 使用说明
- window.location.hash
- window.location.hash 使用说明
- window.location.hash
- window.location.hash 使用说明
- window.location.hash属性介绍
- AJAX Navigation (window.location.hash)
- window.location.hash属性介绍
- window.location.hash使用总结
- window.location.hash属性介绍
- window.location.hash属性介绍
- window.location.hash常用方法
- 单链表的简单冒泡排序
- C代码笔记(一)
- 二维表n*m转一维表n*1
- Android Notification 总结
- android 五大布局(2)帧布局和表格布局
- window.location.hash
- 2017-10-19校内训练题题解
- 九度OJ——1447最短路
- 在Fragment控件的匿名内部类中使用运行时权限及相关问题
- struts2配置全局的结果集和包之间的继承
- 【51Nod1295】XOR key
- AngularJs多选框点击确认按钮弹出对应的值
- TCP/IP详解--TCP连接中TIME_WAIT状态过多
- linux学习笔记(3)