-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.html
78 lines (77 loc) · 2.54 KB
/
404.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<title>Error | HTTP 404 | kdxhub.github.io</title>
<script type="text/javascript" src="https://qzonestyle.gtimg.cn/qzone/hybrid/app/404/search_children.js" charset="utf-8" homePageUrl="http://kdxhub.github.io/" homePageName="回到主页"></script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?a885990c97d17a546e184fcf00ef37aa";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body>
<div class="footer">
<p>404页面正在加载。请稍后。</p>
<button onclick="back()">直接返回上一页</button>
<p>kdxhub Copyright © 2022. All Rights Reserved.</p>
<script>
function back() {
// 利用7种方法返回
//window.history.go(-1);
//window.history.back(-1);
window.history.back();
//history.go(-1);
//history.back(-1);
//history.back();
// 这1种方法防止一些人开新窗,但我也不知道好不好用
//const prevPageUrl = document.referer;
//document.location,href = prevPageUrl;
};
</script>
</div>
</body>
</html>
<!-- 废稿,我也不知道为啥不工作 -->
<!-- <!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8" />
<title>Error | HTTP 404 | kdxhub</title>
<script
type="text/javascript"
src="http://qzonestyle.gtimg.cn/qzone/hybrid/app/404/search_children.js"
charset="utf-8"
homePageUrl="http://kdxhub.github.io/index"
homePageName="回到首页"
></script>
</head>
<body>
<div class="footer">
<p>对此,我们感到十分抱歉。您可以检查一下地址是否输入正确</p>
<a href="https://github.com/kdxhub/kdxhub.github.io/issues/new/choose">如果您坚信这是个错误,您可以点击这里来提交反馈</a>
<p> </p>
</div>
<button onclick="back()">返回上一页</button>
<script>
function back() {
// 利用8种方法返回
window.history.go(-1);
window.history.back(-1);
window.history.back();
history.go(-1);
history.back(-1);
history.back();
// 这2种方法防止一些人开新窗,但我也不知道好不好用
const prevPageUrl = document.referer;
document.location,href = prevPageUrl;
// 要是不能返回就直接关闭
window.close();
}
</script>
</body>
</html> -->