-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
882 lines (635 loc) · 35.4 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
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
<!DOCTYPE html>
<html lang="en" class="loading">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>早起不吃虫</title>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="google" content="notranslate" />
<meta name="keywords" content="coderhaotf,">
<meta name="author" content="haotf">
<link rel="alternative" href="atom.xml" title="早起不吃虫" type="application/atom+xml">
<link rel="icon" href="/img/favicon.png">
<link href="https://fonts.loli.net/css?family=Roboto+Mono|Rubik&display=swap" rel="stylesheet">
<link rel="stylesheet" href="//at.alicdn.com/t/font_1429596_nzgqgvnmkjb.css">
<link rel="stylesheet" href="//cdn.bootcss.com/animate.css/3.7.2/animate.min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/social-share.js/1.0.16/css/share.min.css">
<link rel="stylesheet" href="//cdn.bootcss.com/codemirror/5.48.4/codemirror.min.css">
<link rel="stylesheet" href="//cdn.bootcss.com/codemirror/5.48.4/theme/dracula.css">
<link rel="stylesheet" href="/css/obsidian.css">
<link rel="stylesheet" href="/css/ball-atom.min.css">
<meta name="generator" content="Hexo 4.2.0"></head>
<body class="loading">
<div class="loader">
<div class="la-ball-atom la-2x">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
<span id="config-title" style="display:none">早起不吃虫</span>
<div id="loader"></div>
<div class="nav">
<ul id="menu-menu" class="menu">
<li class="animated fadeInDown menu-item menu-item-type-post_type menu-item-object-page">
<a href="/about/" title="ABOUT" external="false">ABOUT</a>
</li>
<li class="animated fadeInDown menu-item menu-item-type-post_type menu-item-object-page">
<a href="/categories/" title="CATEGORIES" external="false">CATEGORIES</a>
</li>
<li class="animated fadeInDown menu-item menu-item-type-post_type menu-item-object-page">
<a href="/tags/" title="TAGS" external="false">TAGS</a>
</li>
<li class="animated fadeInDown menu-item menu-item-type-post_type menu-item-object-page">
<a href="/archives/" title="ARCHIVES" external="false">ARCHIVES</a>
</li>
</ul>
<p class="copyright" id="copyright">
© 2020 haotf.
Powered by <a href="http://hexo.io/" title="Hexo" target="_blank" rel="noopener">Hexo</a>
Theme <a href="https://github.com/TriDiamond/hexo-theme-obsidian" title="Obsidian" target="_blank" rel="noopener">Obsidian</a>
</p>
</div>
<div id="container">
<div class="search-box">
<form class="site-search-form">
<span class="iconfont icon-search"></span>
<input type="text" id="local-search-input" class="st-search-input" />
<div class="iconfont icon-cross search-box-close"></div>
</form>
<div class="search-scrollable">
<div id="local-search-result" class="local-search-result-cls" data-initialise="Initialising search index..."
data-start="Please input search keywords." data-empty="No result found, please try other keywords.">
<span>Please input search keywords.</span>
</div>
</div>
</div>
<div id="header">
<div>
<div class="logo animated fadeInDown">
<img src="/img/favicon.png" alt="">
<a class="image-logo" href="/"></a>
</div>
<ul id="menu-menu" class="menu text-menu">
<li class="animated fadeInDown menu-item menu-item-type-post_type menu-item-object-page">
<a href="/about/" title="ABOUT" external="false" class="menu-link">ABOUT</a>
</li>
<li class="animated fadeInDown menu-item menu-item-type-post_type menu-item-object-page">
<a href="/categories/" title="CATEGORIES" external="false" class="menu-link">CATEGORIES</a>
</li>
<li class="animated fadeInDown menu-item menu-item-type-post_type menu-item-object-page">
<a href="/tags/" title="TAGS" external="false" class="menu-link">TAGS</a>
</li>
<li class="animated fadeInDown menu-item menu-item-type-post_type menu-item-object-page">
<a href="/archives/" title="ARCHIVES" external="false" class="menu-link">ARCHIVES</a>
</li>
<li class="animated fadeInDown search-bar iconfont icon-search"></li>
</ul>
<div class="iconfont icon-menu switchmenu gradient-text animated fadeInDown"></div>
</div>
</div>
<div id="screen">
<div id="mark">
<div class="cover animated fadeIn" style="
animation-delay: 900ms;
animation-duration: 2.8s;
background-image:
radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.56), #100e17),
url(/img/cover.jpg);">
</div>
</div>
<div id="post0" class="else">
<p class="animated fadeInDown">
<a href="javascript:;"><b>「 </b>Article<b> 」</b></a>
February 24, 2020
</p>
<h3 class="post-title animated fadeInDown">
<a href="/article/2020/02/24/Linux%E8%B4%A6%E5%8F%B7%E7%AE%A1%E7%90%86.html" title="Linux账号管理" class="posttitle">Linux账号管理</a></h3>
<p class="post-count animated fadeInDown">
<span>
<b class="iconfont icon-text2"></b> <i>Words count</i>
7.1k
</span>
<span>
<b class="iconfont icon-timer__s"></b> <i>Reading time</i>
6 mins.
</span>
</p>
<div class="md-content animated fadeIn">
<h5 id="查看账号"><a href="#查看账号" class="headerlink" title="查看账号"></a>查看账号</h5><pre><code class="linux">[root@localhost ~]# head -n 4 /etc/passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin...</code></pre>
<span class="read-more"><a href="/article/2020/02/24/Linux%E8%B4%A6%E5%8F%B7%E7%AE%A1%E7%90%86.html" title="Read article" class="posttitle">Read article</a>
<b class="iconfont icon-arrow-right- gradient-text"></b></span>
</div>
</div>
</div>
<div class="screen-gradient-after">
<div class="screen-gradient-content">
<div class="screen-gradient-content-inside">
<div class="bold-underline-links screen-gradient-sponsor">
<p>
<span class="typed-text"></span>
</p>
</div>
</div>
</div>
</div>
<div id="primary">
<div class="post" id="post">
<div class="post-cover animated fadeIn" style="
background-image:
radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.65), #100e17),
url(/img/welcome-cover.jpg);">
</div>
<div class="else">
<p class="animated fadeInDown">
<a href="javascript:;"><b>「 </b>Article<b> 」</b></a>
February 24, 2020
</p>
<h3 class="post-title animated fadeInDown"><a href="/article/2020/02/24/Linux%E7%A3%81%E7%9B%98%E7%AE%A1%E7%90%86.html" title="Linux磁盘管理" class="posttitle">Linux磁盘管理</a></h3>
<p class="post-count animated fadeInDown">
<span>
<b class="iconfont icon-text2"></b> <i>Words count</i>
14k
</span>
<span>
<b class="iconfont icon-timer__s"></b> <i>Reading time</i>
13 mins.
</span>
</p>
<div class="md-content animated fadeIn">
<p>在Linux系统中,目录、字符设备、块设备、套接字、打印机等都被抽象成了文件,即“Linux系统中一切都是文件”。</p>
<p>在Windows操作系统中,想要找到一个文件,我们要依次进入该文件所在的磁盘分区(假设这里是D盘),然后在进入该分区下的具体目录,最终找到这个文件。但是在Linux系统中并不存在C/D/E/F等盘符,Linux系统中的一切文件都是从“根(/)”目录开始的,并按照文件系统层次化标准(FHS)采用树形结构来存放文件,以及定义了常见目录的用途。</p>
<p>根目录下输入<code>ls</code>,可以查看下面常见目录</p>
<table>
...</table>
<span class="read-more"><a href="/article/2020/02/24/Linux%E7%A3%81%E7%9B%98%E7%AE%A1%E7%90%86.html" title="Read article" class="posttitle">Read article</a> <b class="iconfont icon-arrow-right- gradient-text"></b></span>
</div>
</div>
</div>
<div class="post" id="post">
<div class="post-cover animated fadeIn" style="
background-image:
radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.65), #100e17),
url(/img/welcome-cover.jpg);">
</div>
<div class="else">
<p class="animated fadeInDown">
<a href="javascript:;"><b>「 </b>Article<b> 」</b></a>
February 24, 2020
</p>
<h3 class="post-title animated fadeInDown"><a href="/article/2020/02/24/Linux%E6%9D%83%E9%99%90%E5%91%BD%E4%BB%A4.html" title="Linux权限命令" class="posttitle">Linux权限命令</a></h3>
<p class="post-count animated fadeInDown">
<span>
<b class="iconfont icon-text2"></b> <i>Words count</i>
3.7k
</span>
<span>
<b class="iconfont icon-timer__s"></b> <i>Reading time</i>
3 mins.
</span>
</p>
<div class="md-content animated fadeIn">
<h4 id="查看文件权限"><a href="#查看文件权限" class="headerlink" title="查看文件权限"></a>查看文件权限</h4><pre><code class="linux">ll /
lrwxrwxrwx. 1 root root 7 Mar 29 11:44 bin -> usr/bin
dr-xr-xr-x. 5 root root 4096 Mar 29 11:48 boot
//...</code></pre>
<p>输出结果的第一个字段就是描述文件和目录权限的编码。这个字段的第一个字符代表了对象的类型:</p>
<ul>
<li>- 代表文件</li>
<li>d 代表目录</li>
<li>l 代表链接</li>
<li>c 代表字符型设备</li>
<li>b 代表块设备</li>
<li>n 代表网络设备</li>
</ul>
<p>之后有3组三字符的编码。每一组定义了3种访问权限:</p>
<ul>
<li>r 代表对象是...</li></ul>
<span class="read-more"><a href="/article/2020/02/24/Linux%E6%9D%83%E9%99%90%E5%91%BD%E4%BB%A4.html" title="Read article" class="posttitle">Read article</a> <b class="iconfont icon-arrow-right- gradient-text"></b></span>
</div>
</div>
</div>
<div class="post" id="post">
<div class="post-cover animated fadeIn" style="
background-image:
radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.65), #100e17),
url(/img/welcome-cover.jpg);">
</div>
<div class="else">
<p class="animated fadeInDown">
<a href="javascript:;"><b>「 </b>Article<b> 」</b></a>
February 24, 2020
</p>
<h3 class="post-title animated fadeInDown"><a href="/article/2020/02/24/Linux%E6%96%87%E4%BB%B6%E5%8E%8B%E7%BC%A9.html" title="Linux文件压缩" class="posttitle">Linux文件压缩</a></h3>
<p class="post-count animated fadeInDown">
<span>
<b class="iconfont icon-text2"></b> <i>Words count</i>
4.8k
</span>
<span>
<b class="iconfont icon-timer__s"></b> <i>Reading time</i>
4 mins.
</span>
</p>
<div class="md-content animated fadeIn">
<p>文件压缩是Linux环境下非常常见的操作,我们可以通过一个常用的常见来熟悉相关命令。</p>
<h4 id="查看文件"><a href="#查看文件" class="headerlink" title="查看文件"></a>查看文件</h4><pre><code class="linux">[root@localhost ~]# ll -hS /etc/* | head -n 3
// -h: 显示默认单位
// -S: 按照大小排序
// -n: 从头显示前3行
-rw-r--r--. 1 root root 655K Jun 7 2013 /etc/services
-rw-r--r--. 1 root root 25K Aug 5 2015 /etc/dnsmasq.conf
-rw...</code></pre>
<span class="read-more"><a href="/article/2020/02/24/Linux%E6%96%87%E4%BB%B6%E5%8E%8B%E7%BC%A9.html" title="Read article" class="posttitle">Read article</a> <b class="iconfont icon-arrow-right- gradient-text"></b></span>
</div>
</div>
</div>
<div class="post" id="post">
<div class="post-cover animated fadeIn" style="
background-image:
radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.65), #100e17),
url(/img/welcome-cover.jpg);">
</div>
<div class="else">
<p class="animated fadeInDown">
<a href="javascript:;"><b>「 </b>Article<b> 」</b></a>
February 24, 2020
</p>
<h3 class="post-title animated fadeInDown"><a href="/article/2020/02/24/ACL%E7%AE%A1%E7%90%86.html" title="ACL管理" class="posttitle">ACL管理</a></h3>
<p class="post-count animated fadeInDown">
<span>
<b class="iconfont icon-text2"></b> <i>Words count</i>
4.4k
</span>
<span>
<b class="iconfont icon-timer__s"></b> <i>Reading time</i>
4 mins.
</span>
</p>
<div class="md-content animated fadeIn">
<p>传统的权限仅有三种身份(owner, group, others)搭配三种权限 (r,w,x)而已,并没有办法单纯的针对某一个使用者或某一个群组来设置特定的权<br>限需求, 此时就得要使用 ACL 这个机制。</p>
<p>测试系统是否有支持 ACL:</p>
<pre><code class="linux">// dmesg命令显示linux内核的环形缓冲区信息,我们可以从中获得诸如系统架构、cpu、挂载的硬件,RAM等多个运行级别的大量的系统信息。
[root@localhost ~]# dmesg | grep -i acl
[ 1.138270] systemd[...</code></pre>
<span class="read-more"><a href="/article/2020/02/24/ACL%E7%AE%A1%E7%90%86.html" title="Read article" class="posttitle">Read article</a> <b class="iconfont icon-arrow-right- gradient-text"></b></span>
</div>
</div>
</div>
<div class="post" id="post">
<div class="post-cover animated fadeIn" style="
background-image:
radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.65), #100e17),
url(/img/welcome-cover.jpg);">
</div>
<div class="else">
<p class="animated fadeInDown">
<a href="javascript:;"><b>「 </b>Article<b> 」</b></a>
February 24, 2020
</p>
<h3 class="post-title animated fadeInDown"><a href="/article/2020/02/24/Vim%E5%BF%AB%E9%80%9F%E5%85%A5%E9%97%A8.html" title="Vim快速入门" class="posttitle">Vim快速入门</a></h3>
<p class="post-count animated fadeInDown">
<span>
<b class="iconfont icon-text2"></b> <i>Words count</i>
3.1k
</span>
<span>
<b class="iconfont icon-timer__s"></b> <i>Reading time</i>
3 mins.
</span>
</p>
<div class="md-content animated fadeIn">
<p>Vim 是一款多模式文本编辑器,主要有以下四种模式</p>
<pre><code class="bash"># 进入正常模式
$ vim + enter</code></pre>
<p>按大小写I,i,O,o,A,a皆可进入插入模式。但是光标位置会有区别。</p>
<ul>
<li>如果是i, 则光标没有移动</li>
<li>如果是shift+i,则光标移到改行首位</li>
<li>如果是a,则光标移动到下一位</li>
<li>如果是shift+a,则光标移动到改行末尾</li>
<li>如果是o,则光标移到下一行,并生成一空行</li>
<li>如果是shift+o,则光标移到上一行,并生成一空行</li>
</ul>
<h5 id="移动"><a href="#移动" class="headerlink" title="移动"></a>移动</h5><p>按住键盘的 H,J,K,L 可以在正常模式下进行光标的左右上下移动。</p>
<h5 id="复制张贴"><a href="#复制张贴" class="headerlink" title="复制张贴"></a>复制张贴</h5><ul>
<li><code>yy...</code></li></ul>
<span class="read-more"><a href="/article/2020/02/24/Vim%E5%BF%AB%E9%80%9F%E5%85%A5%E9%97%A8.html" title="Read article" class="posttitle">Read article</a> <b class="iconfont icon-arrow-right- gradient-text"></b></span>
</div>
</div>
</div>
<div class="post" id="post">
<div class="post-cover animated fadeIn" style="
background-image:
radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.65), #100e17),
url(/img/welcome-cover.jpg);">
</div>
<div class="else">
<p class="animated fadeInDown">
<a href="javascript:;"><b>「 </b>Article<b> 」</b></a>
January 28, 2020
</p>
<h3 class="post-title animated fadeInDown"><a href="/article/2020/01/28/%E9%9D%A2%E8%AF%95%E7%BB%8F%E5%85%B8%E9%97%AE%E9%A2%98%E6%B1%87%E6%80%BB.html" title="面试经典问题汇总" class="posttitle">面试经典问题汇总</a></h3>
<p class="post-count animated fadeInDown">
<span>
<b class="iconfont icon-text2"></b> <i>Words count</i>
276k
</span>
<span>
<b class="iconfont icon-timer__s"></b> <i>Reading time</i>
4:11
</span>
</p>
<div class="md-content animated fadeIn">
<p>GET和POST是什么?HTTP协议中的两种发送请求的方法。</p>
<p>HTTP是什么?HTTP是基于TCP/IP的关于数据如何在万维网中如何通信的协议。</p>
<p>HTTP的底层是TCP/IP。所以GET和POST的底层也是TCP/IP,也就是说,GET/POST都是TCP连接。GET和POST能做的事情是一样一样的。你要给GET加上request body,给POST带上url参数,技术上是完全行的通的。</p>
<p>为什么GET与POST请求还有这么多差异呢?根源在于浏览器与服务器的限制。</p>
<h5 id="缓存上的区别"><a href="#缓存上的区别" class="headerlink" title="缓存上的区别"></a><strong>缓存上的区别</strong></h5><ul>
<li>get请求类似于...</li></ul>
<span class="read-more"><a href="/article/2020/01/28/%E9%9D%A2%E8%AF%95%E7%BB%8F%E5%85%B8%E9%97%AE%E9%A2%98%E6%B1%87%E6%80%BB.html" title="Read article" class="posttitle">Read article</a> <b class="iconfont icon-arrow-right- gradient-text"></b></span>
</div>
</div>
</div>
<div class="post" id="post">
<div class="post-cover animated fadeIn" style="
background-image:
radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.65), #100e17),
url(/img/welcome-cover.jpg);">
</div>
<div class="else">
<p class="animated fadeInDown">
<a href="javascript:;"><b>「 </b>Article<b> 」</b></a>
January 28, 2020
</p>
<h3 class="post-title animated fadeInDown"><a href="/article/2020/01/28/%E8%8F%9C%E9%B8%9F%E8%A7%A3%E8%AF%BBjQuery%E6%BA%90%E7%A0%81%E7%B3%BB%E5%88%97-%E5%9B%9B-%E9%81%8D%E5%9C%B0%E9%BB%84%E9%87%91%E7%9A%84%E5%B7%A5%E5%85%B7%E5%87%BD%E6%95%B0.html" title="菜鸟解读jQuery源码系列-四-遍地黄金的工具函数" class="posttitle">菜鸟解读jQuery源码系列-四-遍地黄金的工具函数</a></h3>
<p class="post-count animated fadeInDown">
<span>
<b class="iconfont icon-text2"></b> <i>Words count</i>
7.6k
</span>
<span>
<b class="iconfont icon-timer__s"></b> <i>Reading time</i>
7 mins.
</span>
</p>
<div class="md-content animated fadeIn">
<p>平时写代码是,一些公共的代码是必不可少的,这个时候,每一个成熟的开发者相信都会选择把这类代码抽离出来,成为一个公共的工具函数。这样的好处不言自明,不仅仅显著减少了代码量,还便于管理与优化,避免牵一发而动全身。jQuery库开发版本长达8000多行,里面封装了各种各样的工具函数,今天就让我们来挖掘这块宝藏吧!</p>
<p>先看几个常用的小栗子(自行引入jQuery):</p>
<pre><code class="js">//判断类型
$.type({a:1}); // "object"
$.type($); // "function...</code></pre>
<span class="read-more"><a href="/article/2020/01/28/%E8%8F%9C%E9%B8%9F%E8%A7%A3%E8%AF%BBjQuery%E6%BA%90%E7%A0%81%E7%B3%BB%E5%88%97-%E5%9B%9B-%E9%81%8D%E5%9C%B0%E9%BB%84%E9%87%91%E7%9A%84%E5%B7%A5%E5%85%B7%E5%87%BD%E6%95%B0.html" title="Read article" class="posttitle">Read article</a> <b class="iconfont icon-arrow-right- gradient-text"></b></span>
</div>
</div>
</div>
<div class="post" id="post">
<div class="post-cover animated fadeIn" style="
background-image:
radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.65), #100e17),
url(/img/welcome-cover.jpg);">
</div>
<div class="else">
<p class="animated fadeInDown">
<a href="javascript:;"><b>「 </b>Article<b> 」</b></a>
January 28, 2020
</p>
<h3 class="post-title animated fadeInDown"><a href="/article/2020/01/28/%E8%8F%9C%E9%B8%9F%E8%A7%A3%E8%AF%BBjQuery%E6%BA%90%E7%A0%81%E7%B3%BB%E5%88%97-%E5%85%AD-%E5%87%BD%E6%95%B0%E7%AE%A1%E7%90%86%E4%B8%93%E5%AE%B6Callback.html" title="菜鸟解读jQuery源码系列-六-函数管理专家Callback" class="posttitle">菜鸟解读jQuery源码系列-六-函数管理专家Callback</a></h3>
<p class="post-count animated fadeInDown">
<span>
<b class="iconfont icon-text2"></b> <i>Words count</i>
12k
</span>
<span>
<b class="iconfont icon-timer__s"></b> <i>Reading time</i>
11 mins.
</span>
</p>
<div class="md-content animated fadeIn">
<p>从这一篇开始,我们就要真正进入jQuery的奥秘大陆了!之前的五个系列虽然略显拖沓,但毕竟是打开新世界的钥匙,详细一点是很有必要的。相信仔细看过一遍的小伙伴也会感同身受。</p>
<p>那有的小伙伴就担心了,我前面都没看,这一篇能不能看呢?额,我有说过不能看吗?有说过吗? 唉,显然是没有的事嘛!正所谓即使你不知道你是如何来到这世界的,也不影响你在这片土地快乐的生活呀。</p>
<p>好啦,废话到此为止,进入正题。</p>
<p>先看一个jQuery的API,也就是今天的主题 <code>Callback</code> (自行引入库测试):</p>
<pre><code class="js">function fn1...</code></pre>
<span class="read-more"><a href="/article/2020/01/28/%E8%8F%9C%E9%B8%9F%E8%A7%A3%E8%AF%BBjQuery%E6%BA%90%E7%A0%81%E7%B3%BB%E5%88%97-%E5%85%AD-%E5%87%BD%E6%95%B0%E7%AE%A1%E7%90%86%E4%B8%93%E5%AE%B6Callback.html" title="Read article" class="posttitle">Read article</a> <b class="iconfont icon-arrow-right- gradient-text"></b></span>
</div>
</div>
</div>
<div class="post" id="post">
<div class="post-cover animated fadeIn" style="
background-image:
radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.65), #100e17),
url(/img/welcome-cover.jpg);">
</div>
<div class="else">
<p class="animated fadeInDown">
<a href="javascript:;"><b>「 </b>Article<b> 」</b></a>
January 28, 2020
</p>
<h3 class="post-title animated fadeInDown"><a href="/article/2020/01/28/%E8%8F%9C%E9%B8%9F%E8%A7%A3%E8%AF%BBjQuery%E6%BA%90%E7%A0%81%E7%B3%BB%E5%88%97-%E4%BA%94-%E6%B5%B7%E7%BA%B3%E7%99%BE%E5%B7%9D%E7%9A%84extend.html" title="菜鸟解读jQuery源码系列-五-海纳百川的extend" class="posttitle">菜鸟解读jQuery源码系列-五-海纳百川的extend</a></h3>
<p class="post-count animated fadeInDown">
<span>
<b class="iconfont icon-text2"></b> <i>Words count</i>
7.3k
</span>
<span>
<b class="iconfont icon-timer__s"></b> <i>Reading time</i>
7 mins.
</span>
</p>
<div class="md-content animated fadeIn">
<p>看过前几章的小伙伴看到这里时,应该都有些火大了,不是说源码吗,讲了大半天了,怎么还是那一点东西!!!提起这一茬,不说你们了,其实我都有点火大!想当年啊,我也幻想从源码中获取到那么一丝丝不为人知,独步天下的武林秘籍,可是呢?!可是呢?!好啦好啦,吹水到此为止,其实吧,我一开始就说了,我这个系列是新瓶装旧酒,说是读jQuery源码,本质还是为了从中学习JavaScript的,而且呢,到底要写多少,我自己也没个数,写到哪算哪这种(想通过这个系列熟读jQuery源码的小伙伴别打我!!!)其中到底有多少干...</p>
<span class="read-more"><a href="/article/2020/01/28/%E8%8F%9C%E9%B8%9F%E8%A7%A3%E8%AF%BBjQuery%E6%BA%90%E7%A0%81%E7%B3%BB%E5%88%97-%E4%BA%94-%E6%B5%B7%E7%BA%B3%E7%99%BE%E5%B7%9D%E7%9A%84extend.html" title="Read article" class="posttitle">Read article</a> <b class="iconfont icon-arrow-right- gradient-text"></b></span>
</div>
</div>
</div>
</div>
<div id="pager"><a href="/page/2/" class="more" data-loading="加载中..." data-load-more="Load more">Load more</a></div>
</div>
<div id="preview"></div>
<div id="back-to-top" class="animated fadeIn faster">
<div class="flow"></div>
<span class="percentage animated fadeIn faster">0%</span>
<span class="iconfont icon-top02 animated fadeIn faster"></span>
</div>
</body>
<footer>
<p class="copyright" id="copyright">
© 2020
<span class="gradient-text">
haotf
</span>.
Designed && Powerd by <a href="http://hexo.io/" title="Hexo" target="_blank" rel="noopener">Hexo</a>
<p>Copyright© 2018 早起不吃虫的博客 粤ICP备18104892号</p>
<!-- Theme
<span class="gradient-text">
<a href="https://github.com/TriDiamond/hexo-theme-obsidian" title="Obsidian" target="_blank" rel="noopener">Obsidian</a>
</span>
<small><a href="https://github.com/TriDiamond/hexo-theme-obsidian/blob/master/CHANGELOG.md" title="v1.4.3" target="_blank" rel="noopener">v1.4.3</a></small> -->
</p>
</footer>
<script type="text/javascript" src="https://cdn.bootcss.com/mathjax/2.7.6/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<script>
MathJax.Hub.Config({
"HTML-CSS": {
preferredFont: "TeX",
availableFonts: ["STIX", "TeX"],
linebreaks: {
automatic: true
},
EqnChunk: (MathJax.Hub.Browser.isMobile ? 10 : 50)
},
tex2jax: {
inlineMath: [
["$", "$"],
["\\(", "\\)"]
],
processEscapes: true,
ignoreClass: "tex2jax_ignore|dno",
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
},
TeX: {
noUndefined: {
attributes: {
mathcolor: "red",
mathbackground: "#FFEEEE",
mathsize: "90%"
}
},
Macros: {
href: "{}"
}
},
messageStyle: "none"
});
</script>
<script>
function initialMathJax() {
MathJax.Hub.Queue(function () {
var all = MathJax.Hub.getAllJax(),
i;
// console.log(all);
for (i = 0; i < all.length; i += 1) {
console.log(all[i].SourceElement().parentNode)
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
}
function reprocessMathJax() {
if (typeof MathJax !== 'undefined') {
MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
}
}
</script>
<link rel="stylesheet" href="//cdn.bootcss.com/gitalk/1.5.0/gitalk.min.css">
<script src="//cdn.bootcss.com/gitalk/1.5.0/gitalk.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="/js/plugin.js"></script>
<script src="/js/obsidian.js"></script>
<script src="/js/jquery.truncate.js"></script>
<script src="/js/search.js"></script>
<script src="//cdn.bootcss.com/typed.js/2.0.10/typed.min.js"></script>
<script src="//cdn.bootcss.com/blueimp-md5/2.12.0/js/md5.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/social-share.js/1.0.16/js/social-share.min.js"></script>
<script src="https://cdn.bootcss.com/codemirror/5.48.4/codemirror.min.js"></script>
<script src="//cdn.bootcss.com/codemirror/5.48.4/mode/javascript/javascript.min.js"></script>
<script src="//cdn.bootcss.com/codemirror/5.48.4/mode/css/css.min.js"></script>
<script src="//cdn.bootcss.com/codemirror/5.48.4/mode/xml/xml.min.js"></script>
<script src="//cdn.bootcss.com/codemirror/5.48.4/mode/htmlmixed/htmlmixed.min.js"></script>
<script src="//cdn.bootcss.com/codemirror/5.48.4/mode/clike/clike.min.js"></script>
<script src="//cdn.bootcss.com/codemirror/5.48.4/mode/php/php.min.js"></script>
<script src="//cdn.bootcss.com/codemirror/5.48.4/mode/shell/shell.min.js"></script>
<script src="//cdn.bootcss.com/codemirror/5.48.4/mode/python/python.min.js"></script>
<script src="/js/busuanzi.min.js"></script>
<script>
$(document).ready(function () {
if ($('span[id^="busuanzi_"]').length) {
initialBusuanzi();
}
});
</script>
<link rel="stylesheet" href="//cdn.bootcss.com/photoswipe/4.1.3/photoswipe.min.css">
<link rel="stylesheet" href="//cdn.bootcss.com/photoswipe/4.1.3/default-skin/default-skin.min.css">
<script src="//cdn.bootcss.com/photoswipe/4.1.3/photoswipe.min.js"></script>
<script src="//cdn.bootcss.com/photoswipe/4.1.3/photoswipe-ui-default.min.js"></script>
<!-- Root element of PhotoSwipe. Must have class pswp. -->
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">
<!-- Background of PhotoSwipe.
It's a separate element as animating opacity is faster than rgba(). -->
<div class="pswp__bg"></div>
<!-- Slides wrapper with overflow:hidden. -->
<div class="pswp__scroll-wrap">
<!-- Container that holds slides.
PhotoSwipe keeps only 3 of them in the DOM to save memory.
Don't modify these 3 pswp__item elements, data is added later on. -->
<div class="pswp__container">
<div class="pswp__item"></div>
<div class="pswp__item"></div>
<div class="pswp__item"></div>
</div>
<!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. -->
<div class="pswp__ui pswp__ui--hidden">
<div class="pswp__top-bar">
<!-- Controls are self-explanatory. Order can be changed. -->
<div class="pswp__counter"></div>
<button class="pswp__button pswp__button--close" title="Close (Esc)"></button>
<button class="pswp__button pswp__button--share" title="Share"></button>
<button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>
<button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>
<!-- Preloader demo http://codepen.io/dimsemenov/pen/yyBWoR -->
<!-- element will get class pswp__preloader--active when preloader is running -->
<div class="pswp__preloader">
<div class="pswp__preloader__icn">
<div class="pswp__preloader__cut">
<div class="pswp__preloader__donut"></div>
</div>
</div>
</div>
</div>
<div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
<div class="pswp__share-tooltip"></div>
</div>
<button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
</button>
<button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
</button>
<div class="pswp__caption">
<div class="pswp__caption__center"></div>
</div>
</div>
</div>
</div>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="//www.googletagmanager.com/gtag/js?id=UA-149874671-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-149874671-1');
</script>
<script>
function initialTyped () {
var typedTextEl = $('.typed-text');
if (typedTextEl && typedTextEl.length > 0) {
var typed = new Typed('.typed-text', {
strings: ["Think like an artist, develop like an artisan", "艺术家思维去思考问题,工匠创造精神去开发"],
typeSpeed: 90,
loop: true,
loopCount: Infinity,
backSpeed: 20,
});
}
}
if ($('.article-header') && $('.article-header').length) {
$(document).ready(function () {
initialTyped();
});
}
</script>
</html>