forked from xugy0926/words-from-the-heart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
52 lines (51 loc) · 1.39 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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>JavaScript编程入门</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link href="https://cdn.bootcss.com/semantic-ui/2.2.13/semantic.min.css" rel="stylesheet">
<link rel="stylesheet" href="./public/css/style.css"">
<script src="https://cdn.bootcss.com/vue/2.4.4/vue.min.js"></script>
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/semantic-ui/2.2.13/semantic.min.js"></script>
<script src="./public/js/index.js"></script>
</head>
<body>
<div id="app">
<div class="main-header">
<div class="ui text container">
<h1>{{message}}</h1>
</div>
</div>
<div class="ui text container">
<div class="ui feed">
<div class="event" v-for="item in words">
<div class="label">
<img v-bind:src="item.avatar">
</div>
<div class="content">
<div class="summary">
<a class="user">
{{ item.name }}
</a>
</div>
<div class="extra text">
{{ item.words }}
</div>
</div>
</div>
</div>
</div>
</div>
</body>
<script>
var app = new Vue({
el: '#app',
data: {
message: '你为什么学编程?',
words: words
}
});
</script>
</html>