-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
80 lines (71 loc) · 2.08 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
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
79
80
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title></title>
<style media="screen">
.current {
background: red;
}
* {
padding: 0;
margin: 0;
}
header {
height: 20vw;
line-height: 20vw;
text-align: center;
background: rgb(145, 166, 228);
color: #fff;
font-size: 5vw;
}
#app {
/*width: 800px;*/
max-width: 100%;
margin: 0 auto;
}
.center {
text-align: center;
}
</style>
</head>
<body>
<div id="app"></div>
<div id="example"></div>
<script type="text/javascript">
window.routers = {}
console.time('Date.now()')
</script>
<!-- <script src="//lib.baomitu.com/es6-shim/0.35.1/es6-shim.min.js"></script> -->
<script src="./dist/rv.js" charset="utf-8"></script>
<script src="./dist/app.js" charset="utf-8"></script>
<script type="text/javascript">
console.timeEnd('Date.now()')
// var script = document.createElement('script')
// script.src = './index.js'
// document.head.appendChild(script)
//
// document.addEventListener('readystatechange', ()=>{
// console.log(document.readyState)
// })
//
// var script = document.createElement('script')
// script.src = './fuck.js'
// document.head.appendChild(script)
//
// var css = document.createElement('style')
// css.src = './a.css'
// document.head.appendChild(css)
// css.onload = function(){
// console.log('css加载')
// }
//
// var img = document.createElement('img')
// img.src = `http://wx4.sinaimg.cn/mw690/006iaWqjly1fb5qxwx0jhj30hs0hswh80.jpg`
// img.onload = function(){
// console.log('图片加载')
// }
</script>
</body>
</html>