-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathready.html
More file actions
25 lines (23 loc) · 735 Bytes
/
ready.html
File metadata and controls
25 lines (23 loc) · 735 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<script>
function completed(){
console.log("加载执行")
document.removeEventListener( "DOMContentLoaded", completed, false );
window.removeEventListener( "load", completed, false );
}
function completed1(){
console.log("鸡杂")
document.removeEventListener( "DOMContentLoaded", completed, false );
window.removeEventListener( "load", completed, false );
}
document.addEventListener('DOMContentLoaded', completed, false)
window.addEventListener('load',completed, false)
</script>
</body>
</html>