-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
492 lines (320 loc) · 13.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
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
<!DOCTYPE html>
<html>
<!-- Html Head Tag-->
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="vampire624">
<!-- Open Graph Data -->
<meta property="og:title" content="zhonya's Hourglass"/>
<meta property="og:description" content="blog" />
<meta property="og:site_name" content="zhonya's Hourglass"/>
<meta property="og:type" content="website" />
<meta property="og:image" content="http://vampire624.top"/>
<link rel="alternate" href="/atom.xml" title="zhonya's Hourglass" type="application/atom+xml">
<link rel="icon" href="/favicon.png">
<!-- Site Title -->
<title>zhonya's Hourglass</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="/css/bootstrap.min.css">
<!-- Custom CSS -->
<link rel="stylesheet" href="/css/style.light.css">
<!-- Google Analytics -->
<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-106015191-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<!-- Page Header -->
<header class="site-header header-background" style="background-image: url(/img/default-banner-dark.jpg)">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<div class="page-title with-background-image">
<p class="title">zhonya's Hourglass</p>
<p class="subtitle">凡是过往,皆为序章</p>
</div>
<div class="site-menu with-background-image">
<ul>
<li>
<a href="/">
Home
</a>
</li>
<li>
<a href="/archives">
Archives
</a>
</li>
<li>
<a href="https://github.com/vampire624">
Github
</a>
</li>
<li>
<a href="mailto:[email protected]">
Email
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</header>
<!-- Home Page Post List -->
<div class="container">
<div class="row">
<div class="col-lg-10 col-md-10 col-md-offset-1">
<div class="post-item-wrapper">
<a href="/2018/05/10/promise/" class="post-title">
Promise
</a>
<div class="post-excerpt">
<!-- Post Date and Categories -->
<div class="date-and-category">
<div class="date">2018-05-10</div>
<div class="categories">
<a href="/categories/js/">js</a>
</div>
</div>
<!-- Post Excerpt -->
<div class="excerpt typo"><p>Promise构造函数接受一个函数作为参数,该函数的两个参数分别是resolve和reject。它们是两个函数,由 JavaScript 引擎提供,不用自己部署。<br></div>
<!-- Post Tags -->
<div class="tags">
<a class="tag" href="/tags/js/">js</a> <a class="tag" href="/tags/ES6/">ES6</a>
</div>
</div>
</div>
<div class="post-item-wrapper">
<a href="/2018/05/07/sort/" class="post-title">
js实现7种排序算法
</a>
<div class="post-excerpt">
<!-- Post Date and Categories -->
<div class="date-and-category">
<div class="date">2018-05-07</div>
<div class="categories">
<a href="/categories/数据结构与算法/">数据结构与算法</a>
</div>
</div>
<!-- Post Excerpt -->
<div class="excerpt typo"><p>排序算法是最常见的算法,V8引擎中Array中使用的sort方法是经过优化的,是综合快速排序和插入排序的优化方法。<br>排序算法的演进大概是7种。</p></div>
<!-- Post Tags -->
<div class="tags">
<a class="tag" href="/tags/js/">js</a> <a class="tag" href="/tags/算法/">算法</a>
</div>
</div>
</div>
<div class="post-item-wrapper">
<a href="/2018/04/13/AVL/" class="post-title">
平衡二叉树(AVL)
</a>
<div class="post-excerpt">
<!-- Post Date and Categories -->
<div class="date-and-category">
<div class="date">2018-04-13</div>
<div class="categories">
<a href="/categories/数据结构与算法/">数据结构与算法</a>
</div>
</div>
<!-- Post Excerpt -->
<div class="excerpt typo"><p>平衡二叉搜索树(Self-balancing binary search tree)又被称为AVL树(有别于AVL算法),且具有以下性质:它是一 棵空树或它的左右两个子树的高度差的绝对值不超过1,并且左右两个子树都是一棵平衡二叉树。平衡二叉树的常用实现方法有红黑树、AVL、替罪羊树、Treap、伸展树等。</p></div>
<!-- Post Tags -->
<div class="tags">
<a class="tag" href="/tags/js/">js</a> <a class="tag" href="/tags/数据结构/">数据结构</a>
</div>
</div>
</div>
<div class="post-item-wrapper">
<a href="/2018/04/10/BST/" class="post-title">
搜索二叉树(BST)
</a>
<div class="post-excerpt">
<!-- Post Date and Categories -->
<div class="date-and-category">
<div class="date">2018-04-10</div>
<div class="categories">
<a href="/categories/数据结构与算法/">数据结构与算法</a>
</div>
</div>
<!-- Post Excerpt -->
<div class="excerpt typo"><p>搜索二叉树(BST)可以是一颗空树,若其左子树不为空,则左子树上所有节点均小于或者等于它的根节点的值,若其右子树不为空,则右子树上所有节点均大于或者等于它的根节点的值,左右子树叶分别为搜索二叉树。</p></div>
<!-- Post Tags -->
<div class="tags">
<a class="tag" href="/tags/js/">js</a> <a class="tag" href="/tags/数据结构/">数据结构</a>
</div>
</div>
</div>
<div class="post-item-wrapper">
<a href="/2018/04/08/jsConstantFunction/" class="post-title">
js五大常见函数
</a>
<div class="post-excerpt">
<!-- Post Date and Categories -->
<div class="date-and-category">
<div class="date">2018-04-08</div>
<div class="categories">
<a href="/categories/js/">js</a>
</div>
</div>
<!-- Post Excerpt -->
<div class="excerpt typo"><p>在 JavaScript 中有一些问题会被拿出来经常讨论,这些问题每个人都有不同的思路,想要理解这些问题,最好的方法就是自己实现一遍,话不多说,开始正题。</p></div>
<!-- Post Tags -->
<div class="tags">
<a class="tag" href="/tags/js/">js</a>
</div>
</div>
</div>
<div class="post-item-wrapper">
<a href="/2018/03/09/gulpConfig/" class="post-title">
一份“完善”的Gulp配置
</a>
<div class="post-excerpt">
<!-- Post Date and Categories -->
<div class="date-and-category">
<div class="date">2018-03-09</div>
<div class="categories">
<a href="/categories/nodejs/">nodejs</a>
</div>
</div>
<!-- Post Excerpt -->
<div class="excerpt typo"><p>之前使用过gulp,一直只是作为编译sass,压缩css和合并压缩js来使用,没有对其进行详细的开发发布环境配置,这几天在着重使用,所以重新完善了下gulpfile.js文件,在rollup和parcel大热的势头下,我真的是使用gulp的一股清流了,嘻嘻。</p></div>
<!-- Post Tags -->
<div class="tags">
<a class="tag" href="/tags/nodejs/">nodejs</a> <a class="tag" href="/tags/gulp/">gulp</a>
</div>
</div>
</div>
<div class="post-item-wrapper">
<a href="/2018/03/03/cssBackground/" class="post-title">
重新认识 CSS3 的background属性
</a>
<div class="post-excerpt">
<!-- Post Date and Categories -->
<div class="date-and-category">
<div class="date">2018-03-03</div>
<div class="categories">
<a href="/categories/css/">css</a>
</div>
</div>
<!-- Post Excerpt -->
<div class="excerpt typo"><p>之前在学习CSS的background的时候比较模糊的认识了部分属性,位置,url地址,大小等,这回重新详细认识下它的全部属性,以及书写的顺序。</p></div>
<!-- Post Tags -->
<div class="tags">
<a class="tag" href="/tags/css/">css</a>
</div>
</div>
</div>
<div class="post-item-wrapper">
<a href="/2018/01/15/es6Export/" class="post-title">
ES6:export default 和 export 区别
</a>
<div class="post-excerpt">
<!-- Post Date and Categories -->
<div class="date-and-category">
<div class="date">2018-01-15</div>
<div class="categories">
<a href="/categories/nodejs/">nodejs</a>
</div>
</div>
<!-- Post Excerpt -->
<div class="excerpt typo"><p>es6使用过程中,导出和导入模块时使用export与export default的区别。</p></div>
<!-- Post Tags -->
<div class="tags">
<a class="tag" href="/tags/nodejs/">nodejs</a> <a class="tag" href="/tags/es6/">es6</a>
</div>
</div>
</div>
<div class="post-item-wrapper">
<a href="/2017/09/25/vueMockServer/" class="post-title">
Vue-cli 项目本地搭建mock数据服务器
</a>
<div class="post-excerpt">
<!-- Post Date and Categories -->
<div class="date-and-category">
<div class="date">2017-09-25</div>
<div class="categories">
<a href="/categories/vue/">vue</a>
</div>
</div>
<!-- Post Excerpt -->
<div class="excerpt typo"><p>在使用vue-cli创建的项目进行开发时,很多时候需要后端返回数据进行配合测试,但是作为前端开发过程总不能每个请求都写一个后端返回数据,这里提供一种使用vue项目中自带的express搭建一个mock数据返回的测试服务器,用来返回测试数据。</p></div>
<!-- Post Tags -->
<div class="tags">
<a class="tag" href="/tags/nodejs/">nodejs</a> <a class="tag" href="/tags/express/">express</a> <a class="tag" href="/tags/vuejs/">vuejs</a> <a class="tag" href="/tags/mock/">mock</a>
</div>
</div>
</div>
<div class="post-item-wrapper">
<a href="/2017/09/18/smsText/" class="post-title">
nodeJS 使用第三方 Api 实现短信验证码功能
</a>
<div class="post-excerpt">
<!-- Post Date and Categories -->
<div class="date-and-category">
<div class="date">2017-09-18</div>
<div class="categories">
<a href="/categories/nodejs/">nodejs</a>
</div>
</div>
<!-- Post Excerpt -->
<div class="excerpt typo"><p>在大部分的webApp和app在登录或者注册的时候都使用短信验证码的功能,一般小型网站后端或者个人开发的app不可能重新开发自己的sms短信验证码服务,大多采用第三方集成的sdk,本文使用阿里云通信实现nodejs后端短信验证码的功能。<br></div>
<!-- Post Tags -->
<div class="tags">
<a class="tag" href="/tags/nodejs/">nodejs</a> <a class="tag" href="/tags/api/">api</a> <a class="tag" href="/tags/sms/">sms</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Pagination -->
<div class="container">
<div class="row">
<div class="col-lg-10 col-md-10 col-md-offset-1">
<ul class="pagination">
<li class="next">
<a href="/page/2/">
<span>下一页</span>
<span class="symbol-right">></span>
</a>
</li>
</ul>
</div>
</div>
</div>
<!-- Footer -->
<footer>
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<p class="copyright text-muted">
Theme By <a target="_blank" href="https://github.com/levblanc">Levblanc.</a>
Inspired By <a target="_blank" href="https://github.com/klugjo/hexo-theme-clean-blog">Clean Blog.</a>
<p class="copyright text-muted">
Powered By <a target="_blank" href="https://hexo.io/">Hexo.</a>
</p>
</div>
</div>
</div>
</footer>
<!-- After Footer Scripts -->
<script src="/js/highlight.pack.js"></script>
<script>
document.addEventListener("DOMContentLoaded", function(event) {
var codeBlocks = Array.prototype.slice.call(document.getElementsByTagName('pre'))
codeBlocks.forEach(function(block, index) {
hljs.highlightBlock(block);
});
});
</script>
</body>
</html>