页面跳转的几种方法
2018-03-15 17:25
218 查看
页面跳转的几种方法
window.location
window.location.href=url;window.location.assign(url) //当前页面跳转,会存到历史列表中
window.location.replace(‘url’) //当前页面跳转,不会存到历史列表中
window.open() //新开页面,有些浏览器会拦截
也可以用vue-router this.$router.push(url)
window.history 回退前进
window.history.go(-1)window.history.back()
window.history.go(1)
window.history.forward()
刷新页面
window.reload()window.location.href = window.location.href
相关文章推荐
- JS跳转页面的几种方法
- 微信页面跳转的几种方法
- Flex 页面跳转的几种方法总结
- js跳转页面的几种方法
- JavaScript 页面跳转后台的几种方法
- asp.net 中 实现页面跳转的方法 常用的有几种
- ASP.NET页面跳转的几种方法(转载)
- php实现页面跳转的几种方法
- Servlet跳转到jsp页面的几种方法
- 关于页面跳转的几种方法与比较
- servlet跳转页面的几种方法
- PHP页面跳转几种实现方法
- JSP页面跳转的几种实现方法
- php页面跳转的几种方法
- PHP 页面跳转到另一个页面的几种方法分享
- 实现网页页面跳转的几种方法(meta标签、js实现、php实现)
- Servlet跳转页面的几种方法总结
- JSP页面跳转的几种实现方法
- ASP.NET页面跳转的几种方法
- jsp下页面跳转的几种方法小结