-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
929 lines (597 loc) · 32.1 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
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-MS2BSFXL7Q"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-MS2BSFXL7Q');
</script>
<!-- End Google Analytics -->
<!-- Google AdSense -->
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8832279616908494"
crossorigin="anonymous"></script>
<!-- End Google AdSense -->
<title>陈军的博客</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta property="og:type" content="website">
<meta property="og:title" content="陈军的博客">
<meta property="og:url" content="https://rob2468.github.io/index.html">
<meta property="og:site_name" content="陈军的博客">
<meta property="og:locale" content="zh_CN">
<meta property="article:author" content="陈军">
<meta name="twitter:card" content="summary">
<link rel="alternate" href="/atom.xml" title="陈军的博客" type="application/atom+xml">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/typeface-source-code-pro@0.0.71/index.min.css">
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/fancybox/jquery.fancybox.min.css">
<meta name="generator" content="Hexo 5.4.0"></head>
<body>
<div id="container">
<div id="wrap">
<header id="header" class="index">
<div id="banner"></div>
<div id="header-outer" class="outer">
<!-- 首页,显示博客标题 -->
<div id="header-title" class="inner">
<a id="logo-wrap" href="/">
<img
id="logo-img"
src="https://gw.alipayobjects.com/mdn/rms_6dcfb1/afts/img/A*6l2PRIgAfEAAAAAAAAAAAAAAARQnAQ"
alt=""
/>
<span id="logo">陈军的博客</span>
</a>
</div>
<div id="header-inner" class="inner">
<nav id="main-nav">
<!-- 小屏设备的展开菜单入口 -->
<a id="main-nav-toggle" class="nav-icon"></a>
<!-- 导航菜单 -->
<a class="main-nav-link" href="/">Home</a>
<a class="main-nav-link" href="/archives">Archives</a>
<a class="main-nav-link" href="/about">About</a>
</nav>
<nav id="sub-nav">
<a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
<a id="nav-search-btn" class="nav-icon" title="Search"></a>
</nav>
<!-- 搜索框 -->
<div id="search-form-wrap">
<form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit"></button><input type="hidden" name="sitesearch" value="https://rob2468.github.io"></form>
</div>
</div>
</div>
</header>
<div class="outer">
<section id="main">
<article
id="post-stretch-border-box"
class="h-entry article article-type-post"
itemprop="blogPost"
itemscope
itemtype="https://schema.org/BlogPosting"
>
<div class="article-meta">
<a
href="/2023/09/22/stretch-border-box/"
class="article-date"
>
<time
class="dt-published"
datetime="2023-09-22T00:00:00.000Z"
itemprop="datePublished"
>
2023-09-22
</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a
class="p-name article-title"
href="/2023/09/22/stretch-border-box/"
>
边框可拉伸的盒子
</a>
</h1>
</header>
<div class="e-content article-entry" itemprop="articleBody">
<h1 id=""><a href="#" class="headerlink" title=""></a></h1><h2 id="问题"><a href="#问题" class="headerlink" title="问题"></a>问题</h2><p>前端开发中有时会遇到如下图所示的需求,即在一个不规则边框的容器中显示内容。本文讲述如何拆解这个需求,并通过 border-image CSS 属性实现。(下文讲解使用的原始图片是<a target="_blank" rel="noopener" href="https://mdn.alipayobjects.com/huamei_kmi0zi/afts/img/A*vLdFTYMEEzkAAAAAAAAAAAAADv17AQ/original">这个</a>。)</p>
<p><img src="https://media.githubusercontent.com/media/rob2468/rob2468.github.io/master/images/2023-09-22-%E7%A4%BA%E4%BE%8B.jpg"></p>
<p class="article-more-link">
<a href="/2023/09/22/stretch-border-box/#more">Read More</a>
</p>
</div>
<footer class="article-footer">
<a data-url="https://rob2468.github.io/2023/09/22/stretch-border-box/" data-id="cltmsnqso003leson3h343oyh" data-title="边框可拉伸的盒子" class="article-share-link">Share</a>
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/CSS/" rel="tag">CSS</a></li></ul>
</footer>
</div>
</article>
<article
id="post-compound-interest-simple-interest"
class="h-entry article article-type-post"
itemprop="blogPost"
itemscope
itemtype="https://schema.org/BlogPosting"
>
<div class="article-meta">
<a
href="/2023/09/05/compound-interest-simple-interest/"
class="article-date"
>
<time
class="dt-published"
datetime="2023-09-05T00:00:00.000Z"
itemprop="datePublished"
>
2023-09-05
</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a
class="p-name article-title"
href="/2023/09/05/compound-interest-simple-interest/"
>
复利与单利
</a>
</h1>
</header>
<div class="e-content article-entry" itemprop="articleBody">
<h1 id=""><a href="#" class="headerlink" title=""></a></h1><p>复利的英文翻译:compound interest</p>
<p>单利的英文翻译:simple interest</p>
<p class="article-more-link">
<a href="/2023/09/05/compound-interest-simple-interest/#more">Read More</a>
</p>
</div>
<footer class="article-footer">
<a data-url="https://rob2468.github.io/2023/09/05/compound-interest-simple-interest/" data-id="cltmsnqsn003iesonekmt90of" data-title="复利与单利" class="article-share-link">Share</a>
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E7%9F%A5%E8%AF%86/" rel="tag">知识</a></li></ul>
</footer>
</div>
</article>
<article
id="post-git-log-commit-time"
class="h-entry article article-type-post"
itemprop="blogPost"
itemscope
itemtype="https://schema.org/BlogPosting"
>
<div class="article-meta">
<a
href="/2023/09/01/git-log-commit-time/"
class="article-date"
>
<time
class="dt-published"
datetime="2023-09-01T00:00:00.000Z"
itemprop="datePublished"
>
2023-09-01
</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a
class="p-name article-title"
href="/2023/09/01/git-log-commit-time/"
>
统计特定时间段的代码提交记录
</a>
</h1>
</header>
<div class="e-content article-entry" itemprop="articleBody">
<h1 id=""><a href="#" class="headerlink" title=""></a></h1><h2 id="背景"><a href="#背景" class="headerlink" title="背景"></a>背景</h2><p>如果老板问你最近加班的情况是否严重,你如何回答?</p>
<p>可以执行下面一段 Shell 脚本,自动统计特定时间段的代码提交记录。</p>
<p class="article-more-link">
<a href="/2023/09/01/git-log-commit-time/#more">Read More</a>
</p>
</div>
<footer class="article-footer">
<a data-url="https://rob2468.github.io/2023/09/01/git-log-commit-time/" data-id="cltmsnqsm003gesonddd7env9" data-title="统计特定时间段的代码提交记录" class="article-share-link">Share</a>
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Git/" rel="tag">Git</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Shell/" rel="tag">Shell</a></li></ul>
</footer>
</div>
</article>
<article
id="post-monaco-editor-practice"
class="h-entry article article-type-post"
itemprop="blogPost"
itemscope
itemtype="https://schema.org/BlogPosting"
>
<div class="article-meta">
<a
href="/2023/07/21/monaco-editor-practice/"
class="article-date"
>
<time
class="dt-published"
datetime="2023-07-21T00:00:00.000Z"
itemprop="datePublished"
>
2023-07-21
</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a
class="p-name article-title"
href="/2023/07/21/monaco-editor-practice/"
>
Monaco Editor
</a>
</h1>
</header>
<div class="e-content article-entry" itemprop="articleBody">
<h1 id=""><a href="#" class="headerlink" title=""></a></h1><p><a target="_blank" rel="noopener" href="https://microsoft.github.io/monaco-editor/">Monaco</a> 是一个代码编辑器,大名鼎鼎的 VS Code 便是基于 Monaco 实现。</p>
<h2 id="背景"><a href="#背景" class="headerlink" title="背景"></a>背景</h2><p>在公司里做了一个 PC 端应用,应用名 RPCUI,开发语言 Objective-C。可以在该应用中发起 RPC 调用,调试接口。</p>
<p>RPCUI 实现了一个 JSON 编辑器,用于呈现 RPC 的输入和输出数据。这个编辑器实现原理很简单:使用 WKWebView 加载 Monaco,然后再将 webView 贴到原生视图上。</p>
<p>本文介绍 Monaco 使用的一些实用功能。</p>
<p class="article-more-link">
<a href="/2023/07/21/monaco-editor-practice/#more">Read More</a>
</p>
</div>
<footer class="article-footer">
<a data-url="https://rob2468.github.io/2023/07/21/monaco-editor-practice/" data-id="cltmsnqsm003desonabpx48i9" data-title="Monaco Editor" class="article-share-link">Share</a>
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E5%B7%A5%E7%A8%8B%E5%AE%9E%E8%B7%B5/" rel="tag">工程实践</a></li></ul>
</footer>
</div>
</article>
<article
id="post-travel-in-sanya"
class="h-entry article article-type-post"
itemprop="blogPost"
itemscope
itemtype="https://schema.org/BlogPosting"
>
<div class="article-meta">
<a
href="/2023/06/21/travel-in-sanya/"
class="article-date"
>
<time
class="dt-published"
datetime="2023-06-21T00:00:00.000Z"
itemprop="datePublished"
>
2023-06-21
</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a
class="p-name article-title"
href="/2023/06/21/travel-in-sanya/"
>
2023年6月三亚之旅
</a>
</h1>
</header>
<div class="e-content article-entry" itemprop="articleBody">
<h1 id=""><a href="#" class="headerlink" title=""></a></h1><p>疫情结束有断时间了,想着要带家人出去玩一下。最近团队 outing 去三亚,便带了老婆孩子一起去。6月16日(周五)从上海出发,6月19日(周一)返回。</p>
<p class="article-more-link">
<a href="/2023/06/21/travel-in-sanya/#more">Read More</a>
</p>
</div>
<footer class="article-footer">
<a data-url="https://rob2468.github.io/2023/06/21/travel-in-sanya/" data-id="cltmsnqsl003besonej231ckn" data-title="2023年6月三亚之旅" class="article-share-link">Share</a>
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E7%94%9F%E6%B4%BB/" rel="tag">生活</a></li></ul>
</footer>
</div>
</article>
<article
id="post-reading-notes-zhi-shen-shi-nei"
class="h-entry article article-type-post"
itemprop="blogPost"
itemscope
itemtype="https://schema.org/BlogPosting"
>
<div class="article-meta">
<a
href="/2023/05/31/reading-notes-zhi-shen-shi-nei/"
class="article-date"
>
<time
class="dt-published"
datetime="2023-05-31T00:00:00.000Z"
itemprop="datePublished"
>
2023-05-31
</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a
class="p-name article-title"
href="/2023/05/31/reading-notes-zhi-shen-shi-nei/"
>
置身事内-读书笔记
</a>
</h1>
</header>
<div class="e-content article-entry" itemprop="articleBody">
<h1 id=""><a href="#" class="headerlink" title=""></a></h1><p><img src="https://media.githubusercontent.com/media/rob2468/rob2468.github.io/master/images/2023-05-31-%E7%BD%AE%E8%BA%AB%E4%BA%8B%E5%86%85%E5%B0%81%E9%9D%A2.jpeg" alt="封面"></p>
<p><a target="_blank" rel="noopener" href="https://book.douban.com/subject/35546622/">置身事内-中国政府与经济发展</a></p>
<h2 id="目录与前言"><a href="#目录与前言" class="headerlink" title="目录与前言"></a>目录与前言</h2><p>上篇 微观机制<br>第一章 地方政府的权力与事务<br>第二章 财税与政府行为<br>第三章 政府投融资与债务<br>第四章 工业化中的政府角色</p>
<p>下篇 宏观现象<br>第五章 城市化与不平衡<br>第六章 债务与风险<br>第七章 国内国际失衡<br>第八章 总结:政府与经济发展</p>
<p>本书以我国地方政府投融资为主线。</p>
<p>发展经济是政府的核心任务,而招商引资需要调动各种资源和手段,所涉具体事务既深且广。了解招商引资,是理解地方政府深度融入经济发展过程的起点。</p>
<p class="article-more-link">
<a href="/2023/05/31/reading-notes-zhi-shen-shi-nei/#more">Read More</a>
</p>
</div>
<footer class="article-footer">
<a data-url="https://rob2468.github.io/2023/05/31/reading-notes-zhi-shen-shi-nei/" data-id="cltmsnqt2005heson5apofzd4" data-title="置身事内-读书笔记" class="article-share-link">Share</a>
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E8%AF%BB%E4%B9%A6%E7%AC%94%E8%AE%B0/" rel="tag">读书笔记</a></li></ul>
</footer>
</div>
</article>
<article
id="post-chrome-extensions-best-practice"
class="h-entry article article-type-post"
itemprop="blogPost"
itemscope
itemtype="https://schema.org/BlogPosting"
>
<div class="article-meta">
<a
href="/2023/05/17/chrome-extensions-best-practice/"
class="article-date"
>
<time
class="dt-published"
datetime="2023-05-17T00:00:00.000Z"
itemprop="datePublished"
>
2023-05-17
</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a
class="p-name article-title"
href="/2023/05/17/chrome-extensions-best-practice/"
>
Chrome Extensions 开发最佳实践
</a>
</h1>
</header>
<div class="e-content article-entry" itemprop="articleBody">
<h1 id=""><a href="#" class="headerlink" title=""></a></h1><p>阅读本文需要的基础知识:Chrome Extensions、webpack、React。</p>
<p class="article-more-link">
<a href="/2023/05/17/chrome-extensions-best-practice/#more">Read More</a>
</p>
</div>
<footer class="article-footer">
<a data-url="https://rob2468.github.io/2023/05/17/chrome-extensions-best-practice/" data-id="cltmsnqsk0039eson6hjm7qoc" data-title="Chrome Extensions 开发最佳实践" class="article-share-link">Share</a>
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/React/" rel="tag">React</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/webpack/" rel="tag">webpack</a></li></ul>
</footer>
</div>
</article>
<article
id="post-understanding-react"
class="h-entry article article-type-post"
itemprop="blogPost"
itemscope
itemtype="https://schema.org/BlogPosting"
>
<div class="article-meta">
<a
href="/2023/02/16/understanding-react/"
class="article-date"
>
<time
class="dt-published"
datetime="2023-02-16T00:00:00.000Z"
itemprop="datePublished"
>
2023-02-16
</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a
class="p-name article-title"
href="/2023/02/16/understanding-react/"
>
React 实现原理之异步渲染
</a>
</h1>
</header>
<div class="e-content article-entry" itemprop="articleBody">
<h1 id=""><a href="#" class="headerlink" title=""></a></h1><p>React 从 v16 开始逐步引入异步可中断的渲染架构。</p>
<p>React 渲染过程可以分为三个阶段 Scheduling、Reconciliation、Commit。</p>
<p>Scheduling 阶段执行任务调度,Reconciliation 阶段更新虚拟 DOM,本文主要讲述这两个阶段。(Commit 阶段更新 UI。e.g. 在浏览器环境中更新 DOM、在移动端环境中更新 Native 视图。)</p>
<p>本文基于目前最新的 <a target="_blank" rel="noopener" href="https://github.com/facebook/react/tree/v18.2.0">React v18.2.0</a> 代码。</p>
<p class="article-more-link">
<a href="/2023/02/16/understanding-react/#more">Read More</a>
</p>
</div>
<footer class="article-footer">
<a data-url="https://rob2468.github.io/2023/02/16/understanding-react/" data-id="cltmsnqsj0037eson2yvyaolf" data-title="React 实现原理之异步渲染" class="article-share-link">Share</a>
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/React/" rel="tag">React</a></li></ul>
</footer>
</div>
</article>
<article
id="post-understanding-jsx"
class="h-entry article article-type-post"
itemprop="blogPost"
itemscope
itemtype="https://schema.org/BlogPosting"
>
<div class="article-meta">
<a
href="/2023/02/09/understanding-jsx/"
class="article-date"
>
<time
class="dt-published"
datetime="2023-02-09T00:00:00.000Z"
itemprop="datePublished"
>
2023-02-09
</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a
class="p-name article-title"
href="/2023/02/09/understanding-jsx/"
>
理解 JSX
</a>
</h1>
</header>
<div class="e-content article-entry" itemprop="articleBody">
<h1 id=""><a href="#" class="headerlink" title=""></a></h1><h2 id="JSX-简介"><a href="#JSX-简介" class="headerlink" title="JSX 简介"></a>JSX 简介</h2><p>JSX 的介绍参考 React 官方文档 <a target="_blank" rel="noopener" href="https://zh-hans.reactjs.org/docs/introducing-jsx.html">JSX 简介</a>。</p>
<p>JSX 编译后会转为名为 React.createElement 的函数调用。</p>
<h2 id="React-createElement-函数签名"><a href="#React-createElement-函数签名" class="headerlink" title="React.createElement 函数签名"></a>React.createElement 函数签名</h2><figure class="highlight ts"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="function"><span class="keyword">function</span> <span class="title">createElement</span>(<span class="params"><span class="keyword">type</span>: <span class="built_in">any</span>, props?: <span class="built_in">any</span>, ...children: ReactNode[]</span>)</span></span><br></pre></td></tr></table></figure>
<p>createElement 函数接收三个参数。</p>
<p>第一个参数为节点类型 type。比如,若在 JSX 中是 div,则 type 为 “div” 字符串;若在 JSX 中是自定义函数组件 CustomComponent,则 type 为 CustomComponent 函数。</p>
<p>第二个参数为节点属性 props。比如,若 JSX 中声明 <code><div className="wrap"></code>,则 props 为 <code>{ className: "wrap" }</code>;若 JSX 中声明 <code><div></code>,则 props 为 null。</p>
<p>第三个参数为不定参数,每个参数值对应一个当前节点的子节点。</p>
<p class="article-more-link">
<a href="/2023/02/09/understanding-jsx/#more">Read More</a>
</p>
</div>
<footer class="article-footer">
<a data-url="https://rob2468.github.io/2023/02/09/understanding-jsx/" data-id="cltmsnqsj0035esoncd0hdpa2" data-title="理解 JSX" class="article-share-link">Share</a>
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/React/" rel="tag">React</a></li></ul>
</footer>
</div>
</article>
<article
id="post-how-browser-work"
class="h-entry article article-type-post"
itemprop="blogPost"
itemscope
itemtype="https://schema.org/BlogPosting"
>
<div class="article-meta">
<a
href="/2023/01/17/how-browser-work/"
class="article-date"
>
<time
class="dt-published"
datetime="2023-01-17T00:00:00.000Z"
itemprop="datePublished"
>
2023-01-17
</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a
class="p-name article-title"
href="/2023/01/17/how-browser-work/"
>
浏览器工作原理
</a>
</h1>
</header>
<div class="e-content article-entry" itemprop="articleBody">
<h1 id=""><a href="#" class="headerlink" title=""></a></h1><h2 id="浏览器如何渲染页面"><a href="#浏览器如何渲染页面" class="headerlink" title="浏览器如何渲染页面"></a>浏览器如何渲染页面</h2><p><a target="_blank" rel="noopener" href="https://developer.mozilla.org/en-US/docs/Web/Performance/How_browsers_work">Populating the page: how browsers work</a></p>
<p>用户体验好的网页的标准:1、快速加载;2、交互流畅。</p>
<p class="article-more-link">
<a href="/2023/01/17/how-browser-work/#more">Read More</a>
</p>
</div>
<footer class="article-footer">
<a data-url="https://rob2468.github.io/2023/01/17/how-browser-work/" data-id="cltmsnqsi0033eson1q837b2w" data-title="浏览器工作原理" class="article-share-link">Share</a>
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Web/" rel="tag">Web</a></li></ul>
</footer>
</div>
</article>
<nav id="page-nav">
<span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><a class="page-number" href="/page/3/">3</a><span class="space">…</span><a class="page-number" href="/page/7/">7</a><a class="extend next" rel="next" href="/page/2/">Next »</a>
</nav>
</section>
<aside
id="sidebar"
>
<!-- 目录 table of content -->
<div class="widget-wrap">
<h3 class="widget-title">Tag Cloud</h3>
<div class="widget tagcloud">
<a href="/tags/AST/" style="font-size: 10px;">AST</a> <a href="/tags/CSS/" style="font-size: 12.86px;">CSS</a> <a href="/tags/Git/" style="font-size: 12.86px;">Git</a> <a href="/tags/GitHub/" style="font-size: 10px;">GitHub</a> <a href="/tags/HttpServerDebug/" style="font-size: 12.86px;">HttpServerDebug</a> <a href="/tags/JavaScript/" style="font-size: 12.86px;">JavaScript</a> <a href="/tags/MVC/" style="font-size: 10px;">MVC</a> <a href="/tags/Objective-C/" style="font-size: 10px;">Objective-C</a> <a href="/tags/React/" style="font-size: 12.86px;">React</a> <a href="/tags/Shell/" style="font-size: 10px;">Shell</a> <a href="/tags/UML/" style="font-size: 10px;">UML</a> <a href="/tags/Web/" style="font-size: 11.43px;">Web</a> <a href="/tags/WebSocket/" style="font-size: 10px;">WebSocket</a> <a href="/tags/iOS/" style="font-size: 20px;">iOS</a> <a href="/tags/webpack/" style="font-size: 11.43px;">webpack</a> <a href="/tags/xcodeproj/" style="font-size: 10px;">xcodeproj</a> <a href="/tags/%E5%8A%A8%E6%80%81%E5%8C%96/" style="font-size: 10px;">动态化</a> <a href="/tags/%E5%B7%A5%E7%A8%8B%E5%AE%9E%E8%B7%B5/" style="font-size: 18.57px;">工程实践</a> <a href="/tags/%E6%80%9D%E8%80%83/" style="font-size: 14.29px;">思考</a> <a href="/tags/%E7%94%9F%E6%B4%BB/" style="font-size: 15.71px;">生活</a> <a href="/tags/%E7%9F%A5%E8%AF%86/" style="font-size: 10px;">知识</a> <a href="/tags/%E7%AE%97%E6%B3%95/" style="font-size: 11.43px;">算法</a> <a href="/tags/%E7%BB%8F%E9%AA%8C/" style="font-size: 10px;">经验</a> <a href="/tags/%E7%BD%91%E7%BB%9C/" style="font-size: 11.43px;">网络</a> <a href="/tags/%E7%BF%BB%E8%AF%91/" style="font-size: 12.86px;">翻译</a> <a href="/tags/%E8%A7%82%E5%AF%9F/" style="font-size: 10px;">观察</a> <a href="/tags/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/" style="font-size: 10px;">设计模式</a> <a href="/tags/%E8%AF%BB%E4%B9%A6%E7%AC%94%E8%AE%B0/" style="font-size: 17.14px;">读书笔记</a> <a href="/tags/%E8%B5%84%E6%BA%90/" style="font-size: 14.29px;">资源</a>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">Archives</h3>
<div class="widget">
<ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2023/09/">九月 2023</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2023/07/">七月 2023</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2023/06/">六月 2023</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2023/05/">五月 2023</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2023/02/">二月 2023</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2023/01/">一月 2023</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/10/">十月 2022</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/08/">八月 2022</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/07/">七月 2022</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/06/">六月 2022</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/12/">十二月 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/07/">七月 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/01/">一月 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/12/">十二月 2020</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/08/">八月 2020</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/05/">五月 2020</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/09/">九月 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/07/">七月 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/06/">六月 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/04/">四月 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/03/">三月 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/01/">一月 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/11/">十一月 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/10/">十月 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/09/">九月 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/08/">八月 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/06/">六月 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/05/">五月 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/02/">二月 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/01/">一月 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/08/">八月 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/07/">七月 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/04/">四月 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/12/">十二月 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/09/">九月 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/05/">五月 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/01/">一月 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/11/">十一月 2015</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/10/">十月 2015</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/08/">八月 2015</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/05/">五月 2015</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/04/">四月 2015</a></li></ul>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">Recent Posts</h3>
<div class="widget">
<ul>
<li>
<a href="/2023/09/22/stretch-border-box/">边框可拉伸的盒子</a>
</li>
<li>
<a href="/2023/09/05/compound-interest-simple-interest/">复利与单利</a>
</li>
<li>
<a href="/2023/09/01/git-log-commit-time/">统计特定时间段的代码提交记录</a>
</li>
<li>
<a href="/2023/07/21/monaco-editor-practice/">Monaco Editor</a>
</li>
<li>
<a href="/2023/06/21/travel-in-sanya/">2023年6月三亚之旅</a>
</li>
</ul>
</div>
</div>
</aside>
</div>
<footer id="footer">
<div class="outer">
<div id="footer-info" class="inner">
© 2024 陈军<br>
Powered by <a href="https://hexo.io/" target="_blank">Hexo</a>
</div>
</div>
</footer>
</div>
<!-- 小屏设备的导航菜单 -->
<nav id="mobile-nav">
<a href="/" class="mobile-nav-link">Home</a>
<a href="/archives" class="mobile-nav-link">Archives</a>
<a href="/about" class="mobile-nav-link">About</a>
</nav>
<script src="/js/jquery-3.4.1.min.js"></script>
<script src="/fancybox/jquery.fancybox.min.js"></script>
<script src="/js/script.js"></script>
</div>
</body>
</html>