两种网页自动跳转的方法
一、html的实现
<head>
<!-- 以下方式只是刷新不跳转到其他页面 -->
<meta http-equiv="refresh" content="10">
<!-- 以下方式定时转到其他页面 -->
<meta http-equiv="refresh" content="5;url=https://boke.love">
</head>
以上表示5秒后跳转到https://boke.love
二、javascript的实现
<script language="javascript" type="text/javascript">
// 以下方式直接跳转
window.location.href='https://boke.love';
// 以下方式定时跳转
setTimeout("javascript:location.href='https://boke.love'", 5000);
</script>