-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
442 lines (398 loc) · 23.3 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
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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title>Vue.js</title>
<meta charset="utf-8">
<meta name="description" content="Vue.js - The Progressive JavaScript Framework">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="alternate" hreflang="x-default" href="https://vuejs.org/index.html">
<link rel="alternate" hreflang="zh" href="index.html">
<link rel="alternate" hreflang="ja" href="https://jp.vuejs.org/index.html">
<link rel="alternate" hreflang="ru" href="https://ru.vuejs.org/index.html">
<link rel="alternate" hreflang="ko" href="https://kr.vuejs.org/index.html">
<link rel="alternate" hreflang="pt-BR" href="https://br.vuejs.org/index.html">
<link rel="alternate" hreflang="fr" href="https://fr.vuejs.org/index.html">
<meta property="og:type" content="article">
<meta property="og:title" content="Vue.js">
<meta property="og:description" content="Vue.js - The Progressive JavaScript Framework">
<meta property="og:image" content="https://cn.vuejs.org//images/logo.png">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Vue.js">
<meta name="twitter:description" content="Vue.js - The Progressive JavaScript Framework">
<meta name="twitter:image" content="images/logo.png">
<link rel="apple-touch-icon" sizes="57x57" href="images/icons/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="images/icons/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/icons/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="images/icons/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="images/icons/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="images/icons/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="images/icons/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="images/icons/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="images/icons/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="images/icons/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="images/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="images/icons/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="images/icons/favicon-16x16.png">
<meta name="msapplication-TileImage" content="/images/icons/ms-icon-144x144.png">
<link rel="icon" href="images/logo.png" type="image/png">
<meta name="msapplication-TileColor" content="#4fc08d">
<meta name="theme-color" content="#4fc08d">
<meta name="msapplication-config" content="browserconfig.xml">
<link rel="manifest" href="manifest.json">
<!-- <link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600|Roboto Mono' rel='stylesheet' type='text/css'> -->
<!-- <link href='//fonts.googleapis.com/css?family=Dosis:500&text=Vue.js' rel='stylesheet' type='text/css'> -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<!-- main page styles -->
<link rel="stylesheet" href="css/index.css">
<!-- this needs to be loaded before guide's inline scripts -->
<script src="js/vue.js"></script>
<script>window.PAGE_TYPE = ""</script>
<!-- ga -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-46852172-3', 'cn.vuejs.org');
ga('send', 'pageview');
</script>
</head>
<body class=""> <div id="mobile-bar" class="top">
<a class="menu-button"></a>
<a class="logo" href="index.html"></a>
</div>
<div id="header">
<a id="logo" href="index.html">
<img src="images/logo.png">
<span>Vue.js</span>
</a>
<ul id="nav">
<li>
<form id="search-form">
<input type="text" id="search-query-nav" class="search-query st-default-search-input">
</form>
</li>
<li class="nav-dropdown-container learn">
<a class="nav-link">学习</a><span class="arrow"></span>
<ul class="nav-dropdown">
<li><ul>
<li><a href="v2/guide/index.html" class="nav-link">教程</a></li>
<li><a href="v2/api/index.html" class="nav-link">API</a></li>
<li><a href="v2/examples/index.html" class="nav-link">示例</a></li>
</ul></li>
</ul>
</li>
<li class="nav-dropdown-container ecosystem">
<a class="nav-link">生态系统</a><span class="arrow"></span>
<ul class="nav-dropdown">
<li><h4>帮助</h4></li>
<li><ul>
<li><a href="https://forum.vuejs.org/" class="nav-link" target="_blank">论坛</a></li>
<li><a href="https://chat.vuejs.org/" class="nav-link" target="_blank">聊天室</a></li>
<li><a href="https://github.com/vuejs-templates" class="nav-link" target="_blank">模板</a></li>
</ul></li>
<li><h4>信息</h4></li>
<li><ul>
<li><a href="https://twitter.com/vuejs" class="nav-link" target="_blank">Twitter</a></li>
<li><a href="https://medium.com/the-vue-point" class="nav-link" target="_blank">博客</a></li>
<li><a href="https://vuejobs.com/?ref=vuejs" class="nav-link" target="_blank">工作</a></li>
</ul></li>
<li><h4>核心插件</h4></li>
<li><ul>
<li><a href="https://router.vuejs.org/" class="nav-link" target="_blank">Vue Router</a></li>
<li><a href="https://vuex.vuejs.org/" class="nav-link" target="_blank">Vuex</a></li>
<li><a href="https://ssr.vuejs.org/" class="nav-link" target="_blank">Vue 服务端渲染</a></li>
</ul></li>
<li><h4>资源列表</h4></li>
<li><ul>
<li><a href="https://github.com/vuejs" class="nav-link" target="_blank">官方仓库</a></li>
<li><a href="https://curated.vuejs.org/" class="nav-link" target="_blank">Vue 优选</a></li>
<li><a href="https://github.com/vuejs/awesome-vue" class="nav-link" target="_blank">Vue 资源</a></li>
</ul></li>
</ul>
</li>
<li>
<a href="v2/guide/team.html" class="nav-link team">团队</a>
</li>
<li class="nav-dropdown-container support-vue">
<a class="nav-link">支持 Vue</a><span class="arrow"></span>
<ul class="nav-dropdown">
<li><ul>
<li><a href="https://vue.threadless.com" target="_blank" class="nav-link">商店</a></li>
<li><a href="https://opencollective.com/vuejs" target="_blank" class="nav-link">在 OpenCollective 支持我们</a></li>
<li><a href="https://www.patreon.com/evanyou" target="_blank" class="nav-link">在 Patreon 支持 Evan</a></li>
</ul></li>
</ul>
</li>
<li class="nav-dropdown-container language">
<a class="nav-link">多语言</a><span class="arrow"></span>
<ul class="nav-dropdown">
<li><a href="https://vuejs.org/index.html" class="nav-link" target="_blank">English</a></li>
<li><a href="https://jp.vuejs.org/index.html" class="nav-link" target="_blank">日本語</a></li>
<li><a href="https://ru.vuejs.org/index.html" class="nav-link" target="_blank">Русский</a></li>
<li><a href="https://kr.vuejs.org/index.html" class="nav-link" target="_blank">한국어</a></li>
<li><a href="https://br.vuejs.org/index.html" class="nav-link" target="_blank">Português</a></li>
<li><a href="https://fr.vuejs.org/index.html" class="nav-link" target="_blank">Français</a></li>
</ul>
</li>
<li><a href="https://github.com/vuejs/cn.vuejs.org/" target="_blank" class="nav-link contribute">参与翻译</a></li>
</ul>
</div>
<div class="sidebar">
<div class="sidebar-inner-index">
<ul class="main-menu">
<li>
<form id="search-form">
<input type="text" id="search-query-sidebar" class="search-query st-default-search-input">
</form>
</li>
<li class="nav-dropdown-container learn">
<a class="nav-link">学习</a><span class="arrow"></span>
<ul class="nav-dropdown">
<li><ul>
<li><a href="v2/guide/index.html" class="nav-link">教程</a></li>
<li><a href="v2/api/index.html" class="nav-link">API</a></li>
<li><a href="v2/examples/index.html" class="nav-link">示例</a></li>
</ul></li>
</ul>
</li>
<li class="nav-dropdown-container ecosystem">
<a class="nav-link">生态系统</a><span class="arrow"></span>
<ul class="nav-dropdown">
<li><h4>帮助</h4></li>
<li><ul>
<li><a href="https://forum.vuejs.org/" class="nav-link" target="_blank">论坛</a></li>
<li><a href="https://chat.vuejs.org/" class="nav-link" target="_blank">聊天室</a></li>
<li><a href="https://github.com/vuejs-templates" class="nav-link" target="_blank">模板</a></li>
</ul></li>
<li><h4>信息</h4></li>
<li><ul>
<li><a href="https://twitter.com/vuejs" class="nav-link" target="_blank">Twitter</a></li>
<li><a href="https://medium.com/the-vue-point" class="nav-link" target="_blank">博客</a></li>
<li><a href="https://vuejobs.com/?ref=vuejs" class="nav-link" target="_blank">工作</a></li>
</ul></li>
<li><h4>核心插件</h4></li>
<li><ul>
<li><a href="https://router.vuejs.org/" class="nav-link" target="_blank">Vue Router</a></li>
<li><a href="https://vuex.vuejs.org/" class="nav-link" target="_blank">Vuex</a></li>
<li><a href="https://ssr.vuejs.org/" class="nav-link" target="_blank">Vue 服务端渲染</a></li>
</ul></li>
<li><h4>资源列表</h4></li>
<li><ul>
<li><a href="https://github.com/vuejs" class="nav-link" target="_blank">官方仓库</a></li>
<li><a href="https://curated.vuejs.org/" class="nav-link" target="_blank">Vue 优选</a></li>
<li><a href="https://github.com/vuejs/awesome-vue" class="nav-link" target="_blank">Vue 资源</a></li>
</ul></li>
</ul>
</li>
<li>
<a href="v2/guide/team.html" class="nav-link team">团队</a>
</li>
<li class="nav-dropdown-container support-vue">
<a class="nav-link">支持 Vue</a><span class="arrow"></span>
<ul class="nav-dropdown">
<li><ul>
<li><a href="https://vue.threadless.com" target="_blank" class="nav-link">商店</a></li>
<li><a href="https://opencollective.com/vuejs" target="_blank" class="nav-link">在 OpenCollective 支持我们</a></li>
<li><a href="https://www.patreon.com/evanyou" target="_blank" class="nav-link">在 Patreon 支持 Evan</a></li>
</ul></li>
</ul>
</li>
<li class="nav-dropdown-container language">
<a class="nav-link">多语言</a><span class="arrow"></span>
<ul class="nav-dropdown">
<li><a href="https://vuejs.org/index.html" class="nav-link" target="_blank">English</a></li>
<li><a href="https://jp.vuejs.org/index.html" class="nav-link" target="_blank">日本語</a></li>
<li><a href="https://ru.vuejs.org/index.html" class="nav-link" target="_blank">Русский</a></li>
<li><a href="https://kr.vuejs.org/index.html" class="nav-link" target="_blank">한국어</a></li>
<li><a href="https://br.vuejs.org/index.html" class="nav-link" target="_blank">Português</a></li>
<li><a href="https://fr.vuejs.org/index.html" class="nav-link" target="_blank">Français</a></li>
</ul>
</li>
<li><a href="https://github.com/vuejs/cn.vuejs.org/" target="_blank" class="nav-link contribute">参与翻译</a></li>
</ul>
</div>
</div>
<div id="hero">
<div class="inner">
<div class="left">
<img class="hero-logo" src="images/logo.png">
</div><div class="right">
<h2 class="vue">Vue.js</h2>
<h1>
渐进式<br>JavaScript 框架
</h1>
<p>
<a class="button" href="v2/guide/index.html">起步</a>
<a class="button white" href="https://github.com/vuejs/vue" target="_blank">GITHUB</a>
</p>
</div>
</div>
</div>
<div id="highlights">
<div class="inner">
<div class="point">
<h2>易用</h2>
<p>已经会了 HTML、CSS、JavaScript?即刻阅读指南开始构建应用!</p>
</div>
<div class="point">
<h2>灵活</h2>
<p>不断繁荣的生态系统,可以在一个库和一套完整框架之间自如伸缩。</p>
</div>
<div class="point">
<h2>性能</h2>
<p>
20kb min+gzip 运行大小<br>
超快虚拟 DOM <br>
最省心的优化
</p>
</div>
</div>
</div>
<div id="sponsors">
<div class="inner">
<h3>Patreon 赞助者</h3>
<a href="https://xiaozhuanlan.com/" target="_blank" style="width: 160px;">
<img src="images/xiaozhuanlan.png" style="width: 160px;">
</a>
<br>
<br>
<a href="https://stdlib.com/" target="_blank">
<img src="images/stdlib.png">
</a>
<a href="https://deepstreamhub.com" target="_blank" style="width: 130px; top: 1px;">
<img src="images/deepstream.png" style="width: 130px;">
</a>
<a href="https://jsfiddle.net/" target="_blank">
<img src="images/jsfiddle.png">
</a>
<a href="https://laravel.com/" target="_blank">
<img src="images/laravel.png">
</a>
<a href="https://chaitin.cn" target="_blank" style="top: -1px;">
<img src="images/chaitin.png">
</a>
<a href="https://htmlburger.com" target="_blank">
<img src="images/htmlburger.png">
</a>
<a href="https://starter.someline.com/" target="_blank" style="top: -2px;">
<img src="images/someline.png">
</a>
<a href="http://monterail.com/" target="_blank">
<img src="images/monterail.png">
</a>
<a href="https://www.2mhost.com/" target="_blank" style="width: 90px;">
<img src="images/2mhost.png" style="width: 90px;">
</a>
<a href="https://vuejobs.com/?ref=vuejs" target="_blank" style="width: 80px; top: 4px;">
<img src="images/vuejobs.svg" style="width: 80px;">
</a>
<a href="https://leanpub.com/vuejs2" target="_blank">
<img src="images/tmvuejs2.png">
</a>
<a href="https://component.io" target="_blank" style="width: 120px; top: 1px;">
<img src="images/component_io.png" style="width: 120px;">
</a>
<a href="https://www.v2ex.com/t/379389" target="_blank" style="width: 100px;">
<img src="images/v2exer.png" style="width: 100px;">
</a>
<a href="https://www.xfive.co/" target="_blank" style="width: 65px;">
<img src="images/xfive.png" style="width: 65px;">
</a>
<a href="http://www.frontenddevelopermeetups.com/" target="_blank" style="width: 100px;">
<img src="images/frontend-meetups.png" style="width: 100px;">
</a>
<br>
<a class="become-sponsor button white" href="support-vuejs/index.html">成为赞助者!</a>
<div class="open-collective-sponsors">
<h3>OpenCollective 赞助者</h3>
<h4>白金赞助者</h3>
<a href="https://opencollective.com/vuejs/platinumsponsor/0/website" target="_blank"><img src="https://opencollective.com/vuejs/platinumsponsor/0/avatar.svg"></a><a href="https://opencollective.com/vuejs/platinumsponsor/1/website" target="_blank"><img src="https://opencollective.com/vuejs/platinumsponsor/1/avatar.svg"></a><a href="https://opencollective.com/vuejs/platinumsponsor/2/website" target="_blank"><img src="https://opencollective.com/vuejs/platinumsponsor/2/avatar.svg"></a><a href="https://opencollective.com/vuejs/platinumsponsor/3/website" target="_blank"><img src="https://opencollective.com/vuejs/platinumsponsor/3/avatar.svg"></a><a href="https://opencollective.com/vuejs/platinumsponsor/4/website" target="_blank"><img src="https://opencollective.com/vuejs/platinumsponsor/4/avatar.svg"></a><a href="https://opencollective.com/vuejs/platinumsponsor/5/website" target="_blank"><img src="https://opencollective.com/vuejs/platinumsponsor/5/avatar.svg"></a>
<h4>黄金赞助者</h3>
<a href="https://opencollective.com/vuejs/goldsponsor/0/website" target="_blank"><img src="https://opencollective.com/vuejs/goldsponsor/0/avatar.svg"></a><a href="https://opencollective.com/vuejs/goldsponsor/1/website" target="_blank"><img src="https://opencollective.com/vuejs/goldsponsor/1/avatar.svg"></a><a href="https://opencollective.com/vuejs/goldsponsor/2/website" target="_blank"><img src="https://opencollective.com/vuejs/goldsponsor/2/avatar.svg"></a><a href="https://opencollective.com/vuejs/goldsponsor/3/website" target="_blank"><img src="https://opencollective.com/vuejs/goldsponsor/3/avatar.svg"></a><a href="https://opencollective.com/vuejs/goldsponsor/4/website" target="_blank"><img src="https://opencollective.com/vuejs/goldsponsor/4/avatar.svg"></a><a href="https://opencollective.com/vuejs/goldsponsor/5/website" target="_blank"><img src="https://opencollective.com/vuejs/goldsponsor/5/avatar.svg"></a><a href="https://opencollective.com/vuejs/goldsponsor/6/website" target="_blank"><img src="https://opencollective.com/vuejs/goldsponsor/6/avatar.svg"></a><a href="https://opencollective.com/vuejs/goldsponsor/7/website" target="_blank"><img src="https://opencollective.com/vuejs/goldsponsor/7/avatar.svg"></a><a href="https://opencollective.com/vuejs/goldsponsor/8/website" target="_blank"><img src="https://opencollective.com/vuejs/goldsponsor/8/avatar.svg"></a><a href="https://opencollective.com/vuejs/goldsponsor/9/website" target="_blank"><img src="https://opencollective.com/vuejs/goldsponsor/9/avatar.svg"></a><a href="https://opencollective.com/vuejs/goldsponsor/10/website" target="_blank"><img src="https://opencollective.com/vuejs/goldsponsor/10/avatar.svg"></a><a href="https://opencollective.com/vuejs/goldsponsor/11/website" target="_blank"><img src="https://opencollective.com/vuejs/goldsponsor/11/avatar.svg"></a><a href="https://opencollective.com/vuejs/goldsponsor/12/website" target="_blank"><img src="https://opencollective.com/vuejs/goldsponsor/12/avatar.svg"></a><a href="https://opencollective.com/vuejs/goldsponsor/13/website" target="_blank"><img src="https://opencollective.com/vuejs/goldsponsor/13/avatar.svg"></a><a href="https://opencollective.com/vuejs/goldsponsor/14/website" target="_blank"><img src="https://opencollective.com/vuejs/goldsponsor/14/avatar.svg"></a><a href="https://opencollective.com/vuejs/goldsponsor/15/website" target="_blank"><img src="https://opencollective.com/vuejs/goldsponsor/15/avatar.svg"></a><a href="https://opencollective.com/vuejs/goldsponsor/16/website" target="_blank"><img src="https://opencollective.com/vuejs/goldsponsor/16/avatar.svg"></a><a href="https://opencollective.com/vuejs/goldsponsor/17/website" target="_blank"><img src="https://opencollective.com/vuejs/goldsponsor/17/avatar.svg"></a><a href="https://opencollective.com/vuejs/goldsponsor/18/website" target="_blank"><img src="https://opencollective.com/vuejs/goldsponsor/18/avatar.svg"></a><a href="https://opencollective.com/vuejs/goldsponsor/19/website" target="_blank"><img src="https://opencollective.com/vuejs/goldsponsor/19/avatar.svg"></a><a href="https://opencollective.com/vuejs/goldsponsor/20/website" target="_blank"><img src="https://opencollective.com/vuejs/goldsponsor/20/avatar.svg"></a><a href="https://opencollective.com/vuejs/goldsponsor/21/website" target="_blank"><img src="https://opencollective.com/vuejs/goldsponsor/21/avatar.svg"></a><a href="https://opencollective.com/vuejs/goldsponsor/22/website" target="_blank"><img src="https://opencollective.com/vuejs/goldsponsor/22/avatar.svg"></a><a href="https://opencollective.com/vuejs/goldsponsor/23/website" target="_blank"><img src="https://opencollective.com/vuejs/goldsponsor/23/avatar.svg"></a><a href="https://opencollective.com/vuejs/goldsponsor/24/website" target="_blank"><img src="https://opencollective.com/vuejs/goldsponsor/24/avatar.svg"></a><a href="https://opencollective.com/vuejs/goldsponsor/25/website" target="_blank"><img src="https://opencollective.com/vuejs/goldsponsor/25/avatar.svg"></a><a href="https://opencollective.com/vuejs/goldsponsor/26/website" target="_blank"><img src="https://opencollective.com/vuejs/goldsponsor/26/avatar.svg"></a><a href="https://opencollective.com/vuejs/goldsponsor/27/website" target="_blank"><img src="https://opencollective.com/vuejs/goldsponsor/27/avatar.svg"></a><a href="https://opencollective.com/vuejs/goldsponsor/28/website" target="_blank"><img src="https://opencollective.com/vuejs/goldsponsor/28/avatar.svg"></a><a href="https://opencollective.com/vuejs/goldsponsor/29/website" target="_blank"><img src="https://opencollective.com/vuejs/goldsponsor/29/avatar.svg"></a>
</div>
<script>
window.addEventListener('load', function () {
[].forEach.call(document.querySelectorAll('.open-collective-sponsors img'), function (img) {
if (img.width === 1) {
img.width = 0
img.parentElement.style.margin = '0 -1px 0 0'
}
})
})
</script>
</div>
</div>
<div id="footer">
<a href="https://www.shuttleworthfoundation.org/fellows/flash-grants/" target="_blank">
<img src="images/shuttleworth.png" style="width: 200px;">
</a>
<p>遵循 <a href="https://opensource.org/licenses/MIT" target="_blank">MIT 开源协议</a><br>
Copyright © 2014-2017 Evan You</p>
</div>
<script>
(function () {
var topScrolled = false
var sponsors = document.getElementById('sponsors')
var sponsorTop = sponsors.offsetTop
var sponsorActive = false
window.addEventListener('resize', function () {
sponsorTop = sponsors.offsetTop
})
window.addEventListener('scroll', function () {
if (window.pageYOffset > 165 && !topScrolled) {
topScrolled = true
document.getElementById('mobile-bar').classList.remove('top')
} else if (window.pageYOffset <= 165 && topScrolled) {
topScrolled = false
document.getElementById('mobile-bar').classList.add('top')
}
if (window.pageYOffset > sponsorTop - 100) {
if (!sponsorActive) {
sponsorActive = true
sponsors.classList.add('active')
}
} else {
if (sponsorActive) {
sponsorActive = false
sponsors.classList.remove('active')
}
}
})
})()
</script>
<!-- main custom script for sidebars, version selects etc. -->
<script src="js/css.escape.js"></script>
<script src="js/common.js"></script>
<!-- search -->
<link href="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css" rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/search.css">
<script src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script>
<script>
[
'#search-query-nav',
'#search-query-sidebar',
'#search-query-menu'
].forEach(function (selector) {
if (!document.querySelector(selector)) return
// search index defaults to v2
var match = window.location.pathname.match(/^\/(v\d+)/)
var version = match ? match[1] : 'v2'
docsearch({
appId: 'BH4D9OD16A',
apiKey: '5638280abff9d207417bb03be05f0b25',
indexName: 'vuejs_cn2',
inputSelector: selector,
algoliaOptions: { facetFilters: ["version:" + version] }
})
})
</script>
<!-- fastclick -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/fastclick/1.0.6/fastclick.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
FastClick.attach(document.body)
}, false)
</script>
<script async>'use strict';'serviceWorker'in navigator&&navigator.serviceWorker.register('service-worker.js').then(function(a){a.onupdatefound=function(){var b=a.installing;b.onstatechange=function(){switch(b.state){case'installed':navigator.serviceWorker.controller?console.log('New or updated content is available.'):console.log('Content is now available offline!');break;case'redundant':console.error('The installing service worker became redundant.');}}}}).catch(function(a){console.error('Error during service worker registration:',a)});
</script></body></html>