location几种常用的属性和方法
来源:互联网 发布:蚌埠办公软件培训 编辑:程序博客网 时间:2024/05/20 20:43
<!doctype html><html lang="en"><head><meta charset="UTF-8"><title>location</title></head><body><button onclick="test()">点击href</button><!-- location.href跳转的页面可以通过返回键返回 --><button onclick="test2()">点击replace</button><!-- location.replace跳转的页面不能通过返回键返回 --><input type="text"><button onclick="zai()">重新载入1</button><button onclick="zai2()">重新载入2</button><script>console.log(window.location)console.log(window.location.href)function test(){location.href="2.html"}function test2(){location.replace("2.html")}function zai(){location.reload()}// 从缓存中载入function zai2(){location.reload(true)}// 无视缓存,直接从服务器载入,刷新缓存</script></body></html>
0 0
- location几种常用的属性和方法
- Window、Document、Location、History对象的常用属性和方法
- js:window、location对象的常用属性和方法的应用
- HTML、js:如何利用Location对象的常用属性和方法重新加载、刷新页面
- XMLHttpRequest对象的几种状态和几个重要属性以及常用的方法
- location对象的属性和方法(用法)
- js Location属性和方法的实例说明
- window.location 中包含的属性和方法
- window.open和window.location.href的几种用法
- window.open和window.location.href的几种用法
- window.open和window.location.href的几种用法
- window.open和window.location.href的几种用法
- 几种常用的meta属性
- 下载Youtube视频的几种常用方法和软件
- 下载Youtube视频的几种常用方法和软件
- 下载Youtube视频的几种常用方法和软件
- react和redux中的几种常用的方法
- UE4中常用的几种方法和节点
- java中abstract详解
- 滚动表格到某一行
- c++——第二次作业2
- ORACLE建索引
- sublime text3如何在命令行运行C++程序
- location几种常用的属性和方法
- 自定义圆形圆形控件CircleImageview
- android中listview包含edittext时,获取焦点问题
- 安卓日记——玩转Material Design(NavigationView篇)
- #define的用法总结
- Android官方开发文档Training系列课程中文版:通知用户之构建通知
- mysql 查询奇偶数
- Hibernate配置详细解释
- Java编码问题汇总