meta标签
<meta http-equiv="refresh" content="0.1; url=http://baidu.cn/">
这个网页会在0.1s之后跳转url指向的地址
JavaScript跳转
location.href
window.open
后端使用重定向的状态码+Location响应头来响应浏览器的请求
浏览器会自动跳转
<meta http-equiv="refresh" content="0.1; url=http://baidu.cn/">
这个网页会在0.1s之后跳转url指向的地址
浏览器会自动跳转
本文标题:网页跳转的几种方式
本文链接:https://www.haomeiwen.com/subject/cosboltx.html
网友评论