-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
181 lines (177 loc) · 9.24 KB
/
test.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="./css/test.css">
<style>
</style>
</head>
<body>
<audio id="audioWord" style="display: none;"></audio>
<div class="wrapper">
<div class="left" >
<ul class="word_list isShow" ref="word_list">
<li v-for="(item,index) in word_list" :key="index" :class="{word_wrapper:true,recite:index===0}" :listIndex="index">
<div class="word" >{{item.word}}</div>
<div class="meaning" >{{item.meaning}}</div>
</li>
</ul>
</div>
<div class="right" >
</div>
</div>
</body>
<script type="text/javascript" src="js/test-left.js"></script>
<script type="text/javascript" src="js/test-right.js"></script>
<script type="text/javascript" src="./js/vue.js"></script>
<script>
window.onload = function () {
// 必须先加载left再加载right,因为right应用left的变量和方法
loadingLeft()
loadingRight()
};
new Vue({
el:".left",
data:{
isShow:false,
word_list:[
//换行问题无法解决
// {word:'123123',meaning:'adj.无触角的'},
{word:'abactinal',meaning:'adj.无触角的'},
{word:'abandon',meaning:'v.抛弃放弃'},
{word:'meaning',meaning:'n.意思'},
{word:'scroll',meaning:'v.滚屏;滚动'},
{word:'subscribe',meaning:'v.订阅'},
{word:'publish',meaning:'v.出版'},
{word:'event',meaning:'n.事件'},
{word:'copyright',meaning:'n.版权,著作权'},
{word:'cranny',meaning:'n.裂缝,裂隙'},
{word:'crap',meaning:'n.废物,赌输的一注,废话vi.掷骰子'},
{word:'gymnastic',meaning:'adj.体操的,体育的n.训练课程'},
{word:'graceless',meaning:'adj.粗俗的'},
{word:'grad',meaning:'n.毕业生,校友'},
{word:'romantically',meaning:'adv.浪漫地'},
{word:'rompish',meaning:'adj.乱跳的,顽皮的'},
{word:'rookie',meaning:'n.新手'},
{word:'abactinal',meaning:'adj.无触角的'},
{word:'abandon',meaning:'v.抛弃放弃'},
{word:'meaning',meaning:'n.意思'},
{word:'scroll',meaning:'v.滚屏;滚动'},
{word:'subscribe',meaning:'v.订阅'},
{word:'publish',meaning:'v.出版'},
{word:'event',meaning:'n.事件'},
{word:'copyright',meaning:'n.版权,著作权'},
{word:'cranny',meaning:'n.裂缝,裂隙'},
{word:'crap',meaning:'n.废物,赌输的一注,废话vi.掷骰子'},
{word:'gymnastic',meaning:'adj.体操的,体育的n.训练课程'},
{word:'graceless',meaning:'adj.粗俗的'},
{word:'grad',meaning:'n.毕业生,校友'},
{word:'romantically',meaning:'adv.浪漫地'},
{word:'rompish',meaning:'adj.乱跳的,顽皮的'},
{word:'rookie',meaning:'n.新手'},
{word:'abactinal',meaning:'adj.无触角的'},
{word:'abandon',meaning:'v.抛弃放弃'},
{word:'meaning',meaning:'n.意思'},
{word:'scroll',meaning:'v.滚屏;滚动'},
{word:'subscribe',meaning:'v.订阅'},
{word:'publish',meaning:'v.出版'},
{word:'event',meaning:'n.事件'},
{word:'copyright',meaning:'n.版权,著作权'},
{word:'cranny',meaning:'n.裂缝,裂隙'},
{word:'crap',meaning:'n.废物,赌输的一注,废话vi.掷骰子'},
{word:'gymnastic',meaning:'adj.体操的,体育的n.训练课程'},
{word:'graceless',meaning:'adj.粗俗的'},
{word:'grad',meaning:'n.毕业生,校友'},
{word:'romantically',meaning:'adv.浪漫地'},
{word:'rompish',meaning:'adj.乱跳的,顽皮的'},
{word:'rookie',meaning:'n.新手'},
{word:'abactinal',meaning:'adj.无触角的'},
{word:'abandon',meaning:'v.抛弃放弃'},
{word:'meaning',meaning:'n.意思'},
{word:'scroll',meaning:'v.滚屏;滚动'},
{word:'subscribe',meaning:'v.订阅'},
{word:'publish',meaning:'v.出版'},
{word:'event',meaning:'n.事件'},
{word:'copyright',meaning:'n.版权,著作权'},
{word:'cranny',meaning:'n.裂缝,裂隙'},
{word:'crap',meaning:'n.废物,赌输的一注,废话vi.掷骰子'},
{word:'gymnastic',meaning:'adj.体操的,体育的n.训练课程'},
{word:'graceless',meaning:'adj.粗俗的'},
{word:'grad',meaning:'n.毕业生,校友'},
{word:'romantically',meaning:'adv.浪漫地'},
{word:'rompish',meaning:'adj.乱跳的,顽皮的'},
{word:'rookie',meaning:'n.新手'},
{word:'abactinal',meaning:'adj.无触角的'},
{word:'abandon',meaning:'v.抛弃放弃'},
{word:'meaning',meaning:'n.意思'},
{word:'scroll',meaning:'v.滚屏;滚动'},
{word:'subscribe',meaning:'v.订阅'},
{word:'publish',meaning:'v.出版'},
{word:'event',meaning:'n.事件'},
{word:'copyright',meaning:'n.版权,著作权'},
{word:'cranny',meaning:'n.裂缝,裂隙'},
{word:'crap',meaning:'n.废物,赌输的一注,废话vi.掷骰子'},
{word:'gymnastic',meaning:'adj.体操的,体育的n.训练课程'},
{word:'graceless',meaning:'adj.粗俗的'},
{word:'grad',meaning:'n.毕业生,校友'},
{word:'romantically',meaning:'adv.浪漫地'},
{word:'rompish',meaning:'adj.乱跳的,顽皮的'},
{word:'rookie',meaning:'n.新手'},
{word:'abactinal',meaning:'adj.无触角的'},
{word:'abandon',meaning:'v.抛弃放弃'},
{word:'meaning',meaning:'n.意思'},
{word:'scroll',meaning:'v.滚屏;滚动'},
{word:'subscribe',meaning:'v.订阅'},
{word:'publish',meaning:'v.出版'},
{word:'event',meaning:'n.事件'},
{word:'copyright',meaning:'n.版权,著作权'},
{word:'cranny',meaning:'n.裂缝,裂隙'},
{word:'crap',meaning:'n.废物,赌输的一注,废话vi.掷骰子'},
{word:'gymnastic',meaning:'adj.体操的,体育的n.训练课程'},
{word:'graceless',meaning:'adj.粗俗的'},
{word:'grad',meaning:'n.毕业生,校友'},
{word:'romantically',meaning:'adv.浪漫地'},
{word:'rompish',meaning:'adj.乱跳的,顽皮的'},
{word:'rookie',meaning:'n.新手'},
{word:'abactinal',meaning:'adj.无触角的'},
{word:'abandon',meaning:'v.抛弃放弃'},
{word:'meaning',meaning:'n.意思'},
{word:'scroll',meaning:'v.滚屏;滚动'},
{word:'subscribe',meaning:'v.订阅'},
{word:'publish',meaning:'v.出版'},
{word:'event',meaning:'n.事件'},
{word:'copyright',meaning:'n.版权,著作权'},
{word:'cranny',meaning:'n.裂缝,裂隙'},
{word:'crap',meaning:'n.废物,赌输的一注,废话vi.掷骰子'},
{word:'gymnastic',meaning:'adj.体操的,体育的n.训练课程'},
{word:'graceless',meaning:'adj.粗俗的'},
{word:'grad',meaning:'n.毕业生,校友'},
{word:'romantically',meaning:'adv.浪漫地'},
{word:'rompish',meaning:'adj.乱跳的,顽皮的'},
{word:'rookie',meaning:'n.新手'},
{word:'abactinal',meaning:'adj.无触角的'},
{word:'abandon',meaning:'v.抛弃放弃'},
{word:'meaning',meaning:'n.意思'},
{word:'scroll',meaning:'v.滚屏;滚动'},
{word:'subscribe',meaning:'v.订阅'},
{word:'publish',meaning:'v.出版'},
{word:'event',meaning:'n.事件'},
{word:'copyright',meaning:'n.版权,著作权'},
{word:'cranny',meaning:'n.裂缝,裂隙'},
{word:'crap',meaning:'n.废物,赌输的一注,废话vi.掷骰子'},
{word:'gymnastic',meaning:'adj.体操的,体育的n.训练课程'},
{word:'graceless',meaning:'adj.粗俗的'},
{word:'grad',meaning:'n.毕业生,校友'},
{word:'romantically',meaning:'adv.浪漫地'},
{word:'rompish',meaning:'adj.乱跳的,顽皮的'},
{word:'rookie',meaning:'n.新手'},
]
},
mounted(){
this.$refs.word_list.className=this.$refs.word_list.className.replace(/\s\bisShow\b/,"")
}
})
</script>
</html>