下面代码这种页面自动刷新和跳转,你用过吗?看看是不是最简单……
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="refresh" content="1" />
<title> New Document </title>
</head>
<body>
<span class="">1秒钟刷新一下</span>
<script type="text/javascript">
<!--
var d = new Date();
document.write(d.getSeconds());
//-->
</script>
</body>
</html>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="refresh" content="3;URL='http://www.baidu.com'" />
<title> New Document </title>
</head>
<body>
<span class="">3秒钟后跳转……</span>
</body>
</html>简单吧……
本文介绍如何使用HTML和JavaScript实现页面自动刷新和跳转,包括1秒刷新和3秒后跳转到百度首页的功能。
1722

被折叠的 条评论
为什么被折叠?



