第212天 如何自动转移到新的页面?
我也要出题
在<head>内引入
<head>
<meta http-equiv="refresh" content="0; url=http://example.com/">
content内第一个参数是延迟,单位秒,0为立即跳转 参数url是跳转地址
content
url
window.location.href = `https://www.google.com`;
Most helpful comment
在
<head>内引入content内第一个参数是延迟,单位秒,0为立即跳转参数
url是跳转地址