-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (43 loc) · 1.13 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Welcome</title>
<style>
div {
width: 600px;
margin: 15% auto auto auto;
text-align: center;
font-size: 20px;
color: #555;
}
</style>
</head>
<body>
<div>
<p>欢迎来到 MY MALL</p>
<p>本站仅用于测试,用测试数据模拟后台接口。</p>
<p>
页面将在
<span id="second-clock"></span>
秒后跳转到网站首页
</p>
</div>
<script>
var num=5,i;
function timeCount() {
console.log('11');
document.getElementById('second-clock').innerHTML=num;
num=num-1;
if (num!=-1) {
i=setTimeout("timeCount()",1000);
}else{
window.location.href='dist/view/index.html';
}
}
setTimeout("timeCount()",0);
</script>
</body>
</html>