-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (45 loc) · 971 Bytes
/
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>淡定集团</title>
<style>
li{
padding: 5px;
list-style-type: none;
border: 1px solid #ccc;
}
</style>
</head>
<body>
<div id="app">
<h3>房间列表</h3>
<ul>
<li v-for="(v,k) in rooms">
<p><a :href=" 'room.html?id=' + v.id ">{{v.title}}</a></p>
<p>主播:{{v.username}}</p>
</li>
</ul>
</div>
</body>
</html>
<script src="vue.min.js"></script>
<script>
new Vue({
el :'#app',
data:{
rooms:[
{
id:1,
title:'世界杯',
username:'大灰狼'
},
{
id:2,
title:'PHP',
username:'淡定'
}
]
},
})
</script>