-
Notifications
You must be signed in to change notification settings - Fork 0
/
atom.xml
513 lines (247 loc) · 17.1 KB
/
atom.xml
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
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>任振飞的博客</title>
<subtitle>关注前端</subtitle>
<link href="/atom.xml" rel="self"/>
<link href="http://renzhenfei.top/"/>
<updated>2019-08-23T02:35:40.704Z</updated>
<id>http://renzhenfei.top/</id>
<author>
<name>任振飞</name>
</author>
<generator uri="http://hexo.io/">Hexo</generator>
<entry>
<title>JavaScript专题之学underscore在数组中查找指定元素</title>
<link href="http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-zai-shu-zu-zhong-cha-zhao-zhi-ding-yuan-su/"/>
<id>http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-zai-shu-zu-zhong-cha-zhao-zhi-ding-yuan-su/</id>
<published>2019-08-23T02:22:47.818Z</published>
<updated>2019-08-23T02:35:40.704Z</updated>
<summary type="html">
<h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><p>在开发中,我们经常会遇到在数组中查找指定元素的需求,可能大家觉得这个需求过于简单,然而如何优雅的去实现一个 findIndex 和
</summary>
<category term="javascript" scheme="http://renzhenfei.top/categories/javascript/"/>
</entry>
<entry>
<title>JavaScript专题之数组去重</title>
<link href="http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-shu-zu-qu-chong/"/>
<id>http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-shu-zu-qu-chong/</id>
<published>2019-08-23T02:22:47.815Z</published>
<updated>2019-08-23T02:35:24.919Z</updated>
<summary type="html">
<h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><p>数组去重方法老生常谈,既然是常谈,我也来谈谈。</p>
<h2 id="双层循环"><a href="#双层循环"
</summary>
<category term="javascript" scheme="http://renzhenfei.top/categories/javascript/"/>
</entry>
<entry>
<title>JavaScript专题之数组扁平化</title>
<link href="http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-shu-zu-bian-ping-hua/"/>
<id>http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-shu-zu-bian-ping-hua/</id>
<published>2019-08-23T02:22:47.812Z</published>
<updated>2019-08-23T02:35:09.028Z</updated>
<summary type="html">
<h2 id="扁平化"><a href="#扁平化" class="headerlink" title="扁平化"></a>扁平化</h2><p>数组的扁平化,就是将一个嵌套多层的数组 array
</summary>
<category term="javascript" scheme="http://renzhenfei.top/categories/javascript/"/>
</entry>
<entry>
<title>JavaScript专题之深浅拷贝</title>
<link href="http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-shen-qian-kao-bei/"/>
<id>http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-shen-qian-kao-bei/</id>
<published>2019-08-23T02:22:47.809Z</published>
<updated>2019-08-23T02:34:56.520Z</updated>
<summary type="html">
<h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><p>拷贝也是面试经典呐!</p>
<h2 id="数组的浅拷贝"><a href="#数组的浅拷贝" class="headerlink"
</summary>
<category term="javascript" scheme="http://renzhenfei.top/categories/javascript/"/>
</entry>
<entry>
<title>JavaScript专题之如何求数组的最大值和最小值</title>
<link href="http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-ru-he-qiu-shu-zu-de-zui-da-zhi-he-zui-xiao-zhi/"/>
<id>http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-ru-he-qiu-shu-zu-de-zui-da-zhi-he-zui-xiao-zhi/</id>
<published>2019-08-23T02:22:47.807Z</published>
<updated>2019-08-23T02:34:44.778Z</updated>
<summary type="html">
<h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><p>取出数组中的最大值或者最小值是开发中常见的需求,但你能想出几种方法来实现这个需求呢?</p>
<h2 id="Math-max"><a
</summary>
<category term="javascript" scheme="http://renzhenfei.top/categories/javascript/"/>
</entry>
<entry>
<title>JavaScript专题之如何判断两个对象相等</title>
<link href="http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-ru-he-pan-duan-liang-ge-dui-xiang-xiang-deng/"/>
<id>http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-ru-he-pan-duan-liang-ge-dui-xiang-xiang-deng/</id>
<published>2019-08-23T02:22:47.804Z</published>
<updated>2019-08-23T02:34:31.727Z</updated>
<summary type="html">
<h2 id="前言"><a href="#前言" class="headerlink"
</summary>
<category term="javascript" scheme="http://renzhenfei.top/categories/javascript/"/>
</entry>
<entry>
<title>JavaScript专题之偏函数</title>
<link href="http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-pian-han-shu/"/>
<id>http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-pian-han-shu/</id>
<published>2019-08-23T02:22:47.801Z</published>
<updated>2019-08-23T02:34:17.783Z</updated>
<summary type="html">
<h2 id="定义"><a href="#定义" class="headerlink" title="定义"></a>定义</h2><p>维基百科中对偏函数 (Partial application) 的定义为:</p>
<blockquote>
<p>In computer
</summary>
<category term="javascript" scheme="http://renzhenfei.top/categories/javascript/"/>
</entry>
<entry>
<title>JavaScript专题之乱序</title>
<link href="http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-luan-xu/"/>
<id>http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-luan-xu/</id>
<published>2019-08-23T02:22:47.796Z</published>
<updated>2019-08-23T02:34:06.736Z</updated>
<summary type="html">
<h2 id="乱序"><a href="#乱序" class="headerlink" title="乱序"></a>乱序</h2><p>乱序的意思就是将数组打乱。</p>
<p>嗯,没有了,直接看代码吧。</p>
<h2 id="Math-random"><a
</summary>
<category term="javascript" scheme="http://renzhenfei.top/categories/javascript/"/>
</entry>
<entry>
<title>JavaScript专题之类型判断(下)</title>
<link href="http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-lei-xing-pan-duan-xia/"/>
<id>http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-lei-xing-pan-duan-xia/</id>
<published>2019-08-23T02:22:47.793Z</published>
<updated>2019-08-23T02:33:48.395Z</updated>
<summary type="html">
<h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><p>在上篇<a href="https://github.com/mqyqingfeng/Blog/issues/28"
</summary>
<category term="javascript" scheme="http://renzhenfei.top/categories/javascript/"/>
</entry>
<entry>
<title>JavaScript专题之类型判断(上)</title>
<link href="http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-lei-xing-pan-duan-shang/"/>
<id>http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-lei-xing-pan-duan-shang/</id>
<published>2019-08-23T02:22:47.791Z</published>
<updated>2019-08-23T02:33:30.709Z</updated>
<summary type="html">
<h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><p>类型判断在 web
</summary>
<category term="javascript" scheme="http://renzhenfei.top/categories/javascript/"/>
</entry>
<entry>
<title>JavaScript专题之解读 v8 排序源码</title>
<link href="http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-jie-du-v8-pai-xu-yuan-ma/"/>
<id>http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-jie-du-v8-pai-xu-yuan-ma/</id>
<published>2019-08-23T02:22:47.788Z</published>
<updated>2019-08-23T02:33:11.386Z</updated>
<summary type="html">
<h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><p>v8 是 Chrome 的 JavaScript 引擎,其中关于数组的排序完全采用了 JavaScript
</summary>
<category term="javascript" scheme="http://renzhenfei.top/categories/javascript/"/>
</entry>
<entry>
<title>JavaScript专题之函数组合</title>
<link href="http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-han-shu-zu-he/"/>
<id>http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-han-shu-zu-he/</id>
<published>2019-08-23T02:22:47.786Z</published>
<updated>2019-08-23T02:32:53.949Z</updated>
<summary type="html">
<h2 id="需求"><a href="#需求" class="headerlink" title="需求"></a>需求</h2><p>我们需要写一个函数,输入 ‘kevin’,返回 ‘HELLO, KEVIN’。</p>
<h2 id="尝试"><a href="#尝试"
</summary>
<category term="javascript" scheme="http://renzhenfei.top/categories/javascript/"/>
</entry>
<entry>
<title>JavaScript专题之函数柯里化</title>
<link href="http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-han-shu-ke-li-hua/"/>
<id>http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-han-shu-ke-li-hua/</id>
<published>2019-08-23T02:22:47.783Z</published>
<updated>2019-08-23T02:32:40.805Z</updated>
<summary type="html">
<h2 id="定义"><a href="#定义" class="headerlink" title="定义"></a>定义</h2><p>维基百科中对柯里化 (Currying) 的定义为:</p>
<blockquote>
<p>In mathematics and
</summary>
<category term="javascript" scheme="http://renzhenfei.top/categories/javascript/"/>
</entry>
<entry>
<title>JavaScript 专题之函数记忆</title>
<link href="http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-han-shu-ji-yi/"/>
<id>http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-han-shu-ji-yi/</id>
<published>2019-08-23T02:22:47.780Z</published>
<updated>2019-08-23T02:32:21.993Z</updated>
<summary type="html">
<h2 id="定义"><a href="#定义" class="headerlink"
</summary>
<category term="javascript" scheme="http://renzhenfei.top/categories/javascript/"/>
</entry>
<entry>
<title>JavaScript专题之跟着 underscore 学节流</title>
<link href="http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-gen-zhao-underscore-xue-jie-liu/"/>
<id>http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-gen-zhao-underscore-xue-jie-liu/</id>
<published>2019-08-23T02:22:47.777Z</published>
<updated>2019-08-23T02:31:39.213Z</updated>
<summary type="html">
<h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><p>在<a href="https://github.com/mqyqingfeng/Blog/issues/22"
</summary>
<category term="javascript" scheme="http://renzhenfei.top/categories/javascript/"/>
</entry>
<entry>
<title>JavaScript专题之跟着underscore学防抖</title>
<link href="http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-gen-zhao-underscore-xue-fang-dou/"/>
<id>http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-gen-zhao-underscore-xue-fang-dou/</id>
<published>2019-08-23T02:22:47.775Z</published>
<updated>2019-08-23T02:31:16.036Z</updated>
<summary type="html">
<h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><p>在前端开发中会遇到一些频繁的事件触发,比如:</p>
<ol>
<li>window 的
</summary>
<category term="javascript" scheme="http://renzhenfei.top/categories/javascript/"/>
</entry>
<entry>
<title>JavaScript专题之惰性函数</title>
<link href="http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-duo-xing-han-shu/"/>
<id>http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-duo-xing-han-shu/</id>
<published>2019-08-23T02:22:47.772Z</published>
<updated>2019-08-23T02:31:01.027Z</updated>
<summary type="html">
<h2 id="需求"><a href="#需求" class="headerlink" title="需求"></a>需求</h2><p>我们现在需要写一个 foo 函数,这个函数返回首次调用时的 Date 对象,注意是首次。</p>
<h2 id="解决一:普通方法"><a
</summary>
<category term="javascript" scheme="http://renzhenfei.top/categories/javascript/"/>
</entry>
<entry>
<title>JavaScript专题之递归</title>
<link href="http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-di-gui/"/>
<id>http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-di-gui/</id>
<published>2019-08-23T02:22:47.769Z</published>
<updated>2019-08-23T02:30:41.392Z</updated>
<summary type="html">
<h2 id="定义"><a href="#定义" class="headerlink" title="定义"></a>定义</h2><p>程序调用自身的编程技巧称为递归(recursion)。</p>
<h2 id="阶乘"><a href="#阶乘"
</summary>
<category term="javascript" scheme="http://renzhenfei.top/categories/javascript/"/>
</entry>
<entry>
<title>JavaScript专题之从零实现jQuery的extend</title>
<link href="http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-cong-ling-shi-xian-jquery-de-extend/"/>
<id>http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-cong-ling-shi-xian-jquery-de-extend/</id>
<published>2019-08-23T02:22:47.766Z</published>
<updated>2019-08-23T02:30:27.589Z</updated>
<summary type="html">
<h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><p>jQuery 的 extend 是 jQuery 中应用非常多的一个函数,今天我们一边看 jQuery 的 extend
</summary>
<category term="javascript" scheme="http://renzhenfei.top/categories/javascript/"/>
</entry>
<entry>
<title>JavaScript专题之jQuery通用遍历方法each的实现</title>
<link href="http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-jquery-tong-yong-bian-li-fang-fa-each-de-shi-xian/"/>
<id>http://renzhenfei.top/2019/08/23/javascript-zhuan-ti-zhi-jquery-tong-yong-bian-li-fang-fa-each-de-shi-xian/</id>
<published>2019-08-23T02:22:47.763Z</published>
<updated>2019-08-23T02:35:57.314Z</updated>
<summary type="html">
<h2 id="each介绍"><a href="#each介绍" class="headerlink" title="each介绍"></a>each介绍</h2><p>jQuery 的 each
</summary>
<category term="javascript" scheme="http://renzhenfei.top/categories/javascript/"/>
</entry>
</feed>