-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (50 loc) · 1.14 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>首页</title>
<link rel="stylesheet" href="style/style.css">
<style>
ul {
margin-top: 30px;
}
ul li {
text-align: left;
border-top: 1px solid #d0c9c9;
}
ul li:last-child {
border-bottom: 1px solid #d0c9c9;
}
ul li a {
display: flex;
padding: 10px;
font-size: 24px;
}
ul li a:hover {
background: #d0c9c9;
}
</style>
</head>
<body>
<div id="app">
<ul>
<li v-for='(item, index) in list' :key='index'><a :href="item.src">{{item.name}}</a></li>
</ul>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>
<script>
let vue = new Vue({
el: '#app',
data: {
list: [
{ src:'view/slide.html', name: 'slide'},
{ src:'view/scroller.html', name: 'scroller'},
{ src:'view/infinite-loading.html', name: 'infiniteLoading'},
{ src:'view/scroller2.html', name: 'scroller2'},
]
}
})
</script>
</body>
</html>