-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathatom.xml
More file actions
1532 lines (825 loc) · 86.5 KB
/
atom.xml
File metadata and controls
1532 lines (825 loc) · 86.5 KB
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
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Jam</title>
<icon>https://rob2468.github.io/icon.png</icon>
<link href="https://rob2468.github.io/atom.xml" rel="self"/>
<link href="https://rob2468.github.io/"/>
<updated>2026-05-22T16:35:29.023Z</updated>
<id>https://rob2468.github.io/</id>
<author>
<name>陈军</name>
</author>
<generator uri="https://hexo.io/">Hexo</generator>
<entry>
<title>ACP (Agent Communication Protocol) 概念梳理</title>
<link href="https://rob2468.github.io/2026/05/23/acp-protocol/"/>
<id>https://rob2468.github.io/2026/05/23/acp-protocol/</id>
<published>2026-05-23T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.023Z</updated>
<summary type="html"><h1 id=""><a href="#" class="headerlink" title=""></a></h1><h2 id="ACP-解决什么问题"><a href="#ACP-解决什么问题" class="headerlink" title="ACP 解决什么问题"></a>ACP 解决什么问题</h2><p>Claude Code、Codex 这些 AI coding agent 各有自己的私有内核。如果你想在自己的应用里程序化地驱动它们(比如发一条 prompt、拿到流式回复、审批工具调用),每家 agent 的对接方式都不一样,你得为每家写一套集成代码。</p>
<p>ACP(Agent Communication Protocol)就是为了解决这个问题——定义一套统一的协议,让任何 client 都能用同一种方式对接任何 agent。一个协议,多个 agent 实现,多个 client 实现,互相可以对接。</p></summary>
<category term="AI" scheme="https://rob2468.github.io/tags/AI/"/>
</entry>
<entry>
<title>Claude Agent SDK 试用</title>
<link href="https://rob2468.github.io/2026/03/26/claude-agent-sdk/"/>
<id>https://rob2468.github.io/2026/03/26/claude-agent-sdk/</id>
<published>2026-03-26T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.023Z</updated>
<summary type="html"><h1 id=""><a href="#" class="headerlink" title=""></a></h1><h2 id="基本用法"><a href="#基本用法" class="headerlink" title="基本用法"></a>基本用法</h2><figure class="highlight typescript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">import</span> &#123; query &#125; <span class="keyword">from</span> <span class="string">&quot;@anthropic-ai/claude-agent-sdk&quot;</span>;</span><br><span class="line"></span><br><span class="line"><span class="keyword">const</span> agentMessages = query(&#123;</span><br><span class="line"> prompt,</span><br><span class="line"> <span class="attr">options</span>: &#123;</span><br><span class="line"> cwd,</span><br><span class="line"> sessionId,</span><br><span class="line"> <span class="attr">settingSources</span>: [<span class="string">&#x27;user&#x27;</span>],</span><br><span class="line"> &#125;,</span><br><span class="line">&#125;);</span><br><span class="line"></span><br><span class="line"><span class="keyword">for</span> <span class="keyword">await</span> (<span class="keyword">const</span> message <span class="keyword">of</span> agentMessages) &#123;</span><br><span class="line"> <span class="built_in">console</span>.log(message); <span class="comment">// Claude reads the file, finds the bug, edits it</span></span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<ul>
<li>用户每发起一次对话,会执行上面的代码。prompt 放在第4行的字段里。</li>
<li>query 是生成器函数,第3行调用后,返回一个迭代器对象。</li>
<li>第12行 for of 持续获取 Claude 的返回。</li>
</ul></summary>
<category term="AI" scheme="https://rob2468.github.io/tags/AI/"/>
</entry>
<entry>
<title>Transformer工作原理</title>
<link href="https://rob2468.github.io/2026/03/14/transformer-theory/"/>
<id>https://rob2468.github.io/2026/03/14/transformer-theory/</id>
<published>2026-03-14T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.023Z</updated>
<summary type="html"><h1 id=""><a href="#" class="headerlink" title=""></a></h1><p><img src="https://media.githubusercontent.com/media/rob2468/rob2468.github.io/master/images/2026-03-14-transformer%E6%9E%B6%E6%9E%84.png" width="50%"></p></summary>
<category term="AI" scheme="https://rob2468.github.io/tags/AI/"/>
</entry>
<entry>
<title>AI 时代 - 生产力和生产关系</title>
<link href="https://rob2468.github.io/2026/02/12/ai-era-productivity-and-production-relations/"/>
<id>https://rob2468.github.io/2026/02/12/ai-era-productivity-and-production-relations/</id>
<published>2026-02-12T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.023Z</updated>
<summary type="html"><h1 id=""><a href="#" class="headerlink" title=""></a></h1><h2 id="生产力"><a href="#生产力" class="headerlink" title="生产力"></a>生产力</h2><p>AI 赋能下,生产力实现了巨大提升。</p>
<ul>
<li><p>独立开发者可以完成超级复杂的系统的开发。</p>
</li>
<li><p>以往需要长时间开发周期的任务,现在只要 1/2 或 1/3 的时长就能完成。</p>
</li>
</ul></summary>
<category term="思考" scheme="https://rob2468.github.io/tags/%E6%80%9D%E8%80%83/"/>
<category term="AI" scheme="https://rob2468.github.io/tags/AI/"/>
</entry>
<entry>
<title>安装、使用 openclaw</title>
<link href="https://rob2468.github.io/2026/02/08/openclaw/"/>
<id>https://rob2468.github.io/2026/02/08/openclaw/</id>
<published>2026-02-08T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.023Z</updated>
<summary type="html"><h1 id=""><a href="#" class="headerlink" title=""></a></h1><p>周末在虚拟机上安装了 <a href="https://openclaw.ai/">openclaw</a>。</p>
<p>自己电脑是 macos,安装了 Paralles Desktop 虚拟机,在虚拟机里又安装了一个 macos。自己的电脑工作用,怕搞坏了,虚拟机里随便弄。</p>
<p>安装挺简单,输入官网的一句话命令,顺利指引一路走下去。</p>
<p><code>curl -fsSL https://openclaw.ai/install.sh | bash</code></p>
<p>openclaw 安装完成后,可以通过 web 或终端交互。</p>
<p><img src="https://media.githubusercontent.com/media/rob2468/rob2468.github.io/master/images/2026-02-08-openclaw-chat.jpg"></p>
<p>执行 <code>openclaw tui</code>,进入终端交互页面。</p>
<p><img src="https://media.githubusercontent.com/media/rob2468/rob2468.github.io/master/images/2026-02-08-openclaw-tui.jpg"></p></summary>
<category term="AI" scheme="https://rob2468.github.io/tags/AI/"/>
</entry>
<entry>
<title>2025威海5天4晚旅游</title>
<link href="https://rob2468.github.io/2025/10/07/travel-to-weihai/"/>
<id>https://rob2468.github.io/2025/10/07/travel-to-weihai/</id>
<published>2025-10-07T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.022Z</updated>
<summary type="html"><h1 id=""><a href="#" class="headerlink" title=""></a></h1><p>今年国庆有8天假期,很早规划带老婆孩子外出旅游。</p>
<p>城市选择有点拍脑袋,我觉得去海边才有度假的感觉。首先考虑的是青岛,简单调研了下,没有留下什么记忆点(亮点)。然后看到了威海,给人的印象是有很长的海岸线,最后选了这里。</p></summary>
<category term="生活" scheme="https://rob2468.github.io/tags/%E7%94%9F%E6%B4%BB/"/>
</entry>
<entry>
<title>技术方案选型指北</title>
<link href="https://rob2468.github.io/2025/07/06/selection-of-technical-scheme/"/>
<id>https://rob2468.github.io/2025/07/06/selection-of-technical-scheme/</id>
<published>2025-07-06T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.022Z</updated>
<summary type="html"><h1 id=""><a href="#" class="headerlink" title=""></a></h1><h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><p>这篇文章的完整标题是:<u>多人研发</u>的<u>前端工程团队</u>如何做技术方案选型?</p>
<p>我当前所在的前端团队有 7 名 Android 开发、8 名 iOS 开发、16 名 H5 开发(其中 1/3 是内包)。除了 Android/iOS 客户端研发之外,团队成员需要具备全栈开发的能力,研发涉及的系统有 Chair、Needle、Cube、H5。</p>
<p>团队负责的业务场景众多,远超团队成员数量,再考虑人力资源、项目排期、风险等问题,不可能始终让一个人持续维护一个固定模块。</p>
<p>作为一个前端工程团队,需要思考如何降低多人研发的复杂度,降低理解成本、开发成本、维护成本。</p></summary>
<category term="思考" scheme="https://rob2468.github.io/tags/%E6%80%9D%E8%80%83/"/>
<category term="设计模式" scheme="https://rob2468.github.io/tags/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/"/>
</entry>
<entry>
<title>文本处理 CSS 属性 - white-space/word-break/word-wrap</title>
<link href="https://rob2468.github.io/2025/05/21/text-css/"/>
<id>https://rob2468.github.io/2025/05/21/text-css/</id>
<published>2025-05-21T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.022Z</updated>
<summary type="html"><h1 id=""><a href="#" class="headerlink" title=""></a></h1><p>CSS 处理文本的几个属性,理解起来比较相似。本文汇总在一起,帮助对比、理解、记忆。</p></summary>
<category term="CSS" scheme="https://rob2468.github.io/tags/CSS/"/>
</entry>
<entry>
<title>边框可拉伸的盒子</title>
<link href="https://rob2468.github.io/2023/09/22/stretch-border-box/"/>
<id>https://rob2468.github.io/2023/09/22/stretch-border-box/</id>
<published>2023-09-22T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.022Z</updated>
<summary type="html"><h1 id=""><a href="#" class="headerlink" title=""></a></h1><h2 id="问题"><a href="#问题" class="headerlink" title="问题"></a>问题</h2><p>前端开发中有时会遇到如下图所示的需求,即在一个不规则边框的容器中显示内容。本文讲述如何拆解这个需求,并通过 border-image CSS 属性实现。(下文讲解使用的原始图片是<a 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></summary>
<category term="CSS" scheme="https://rob2468.github.io/tags/CSS/"/>
</entry>
<entry>
<title>复利与单利</title>
<link href="https://rob2468.github.io/2023/09/05/compound-interest-simple-interest/"/>
<id>https://rob2468.github.io/2023/09/05/compound-interest-simple-interest/</id>
<published>2023-09-05T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.022Z</updated>
<summary type="html"><h1 id=""><a href="#" class="headerlink" title=""></a></h1><p>复利的英文翻译:compound interest</p>
<p>单利的英文翻译:simple interest</p></summary>
<category term="知识" scheme="https://rob2468.github.io/tags/%E7%9F%A5%E8%AF%86/"/>
</entry>
<entry>
<title>统计特定时间段的代码提交记录</title>
<link href="https://rob2468.github.io/2023/09/01/git-log-commit-time/"/>
<id>https://rob2468.github.io/2023/09/01/git-log-commit-time/</id>
<published>2023-09-01T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.022Z</updated>
<summary type="html"><h1 id=""><a href="#" class="headerlink" title=""></a></h1><h2 id="背景"><a href="#背景" class="headerlink" title="背景"></a>背景</h2><p>如果老板问你最近加班的情况是否严重,你如何回答?</p>
<p>可以执行下面一段 Shell 脚本,自动统计特定时间段的代码提交记录。</p></summary>
<category term="Git" scheme="https://rob2468.github.io/tags/Git/"/>
<category term="Shell" scheme="https://rob2468.github.io/tags/Shell/"/>
</entry>
<entry>
<title>Monaco Editor</title>
<link href="https://rob2468.github.io/2023/07/21/monaco-editor-practice/"/>
<id>https://rob2468.github.io/2023/07/21/monaco-editor-practice/</id>
<published>2023-07-21T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.022Z</updated>
<summary type="html"><h1 id=""><a href="#" class="headerlink" title=""></a></h1><p><a 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></summary>
<category term="工程实践" scheme="https://rob2468.github.io/tags/%E5%B7%A5%E7%A8%8B%E5%AE%9E%E8%B7%B5/"/>
</entry>
<entry>
<title>2023年6月三亚之旅</title>
<link href="https://rob2468.github.io/2023/06/21/travel-in-sanya/"/>
<id>https://rob2468.github.io/2023/06/21/travel-in-sanya/</id>
<published>2023-06-21T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.022Z</updated>
<summary type="html"><h1 id=""><a href="#" class="headerlink" title=""></a></h1><p>疫情结束有断时间了,想着要带家人出去玩一下。最近团队 outing 去三亚,便带了老婆孩子一起去。6月16日(周五)从上海出发,6月19日(周一)返回。</p></summary>
<category term="生活" scheme="https://rob2468.github.io/tags/%E7%94%9F%E6%B4%BB/"/>
</entry>
<entry>
<title>置身事内-读书笔记</title>
<link href="https://rob2468.github.io/2023/05/31/reading-notes-zhi-shen-shi-nei/"/>
<id>https://rob2468.github.io/2023/05/31/reading-notes-zhi-shen-shi-nei/</id>
<published>2023-05-31T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.022Z</updated>
<summary type="html"><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 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></summary>
<category term="读书笔记" scheme="https://rob2468.github.io/tags/%E8%AF%BB%E4%B9%A6%E7%AC%94%E8%AE%B0/"/>
</entry>
<entry>
<title>Chrome Extensions 开发最佳实践</title>
<link href="https://rob2468.github.io/2023/05/17/chrome-extensions-best-practice/"/>
<id>https://rob2468.github.io/2023/05/17/chrome-extensions-best-practice/</id>
<published>2023-05-17T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.022Z</updated>
<summary type="html"><h1 id=""><a href="#" class="headerlink" title=""></a></h1><p>阅读本文需要的基础知识:Chrome Extensions、webpack、React。</p></summary>
<category term="webpack" scheme="https://rob2468.github.io/tags/webpack/"/>
<category term="React" scheme="https://rob2468.github.io/tags/React/"/>
</entry>
<entry>
<title>React 实现原理之异步渲染</title>
<link href="https://rob2468.github.io/2023/02/16/understanding-react/"/>
<id>https://rob2468.github.io/2023/02/16/understanding-react/</id>
<published>2023-02-16T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.022Z</updated>
<summary type="html"><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 href="https://github.com/facebook/react/tree/v18.2.0">React v18.2.0</a> 代码。</p></summary>
<category term="React" scheme="https://rob2468.github.io/tags/React/"/>
</entry>
<entry>
<title>理解 JSX</title>
<link href="https://rob2468.github.io/2023/02/09/understanding-jsx/"/>
<id>https://rob2468.github.io/2023/02/09/understanding-jsx/</id>
<published>2023-02-09T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.022Z</updated>
<summary type="html"><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 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>&lt;div className=&quot;wrap&quot;&gt;</code>,则 props 为 <code>&#123; className: &quot;wrap&quot; &#125;</code>;若 JSX 中声明 <code>&lt;div&gt;</code>,则 props 为 null。</p>
<p>第三个参数为不定参数,每个参数值对应一个当前节点的子节点。</p></summary>
<category term="React" scheme="https://rob2468.github.io/tags/React/"/>
</entry>
<entry>
<title>浏览器工作原理</title>
<link href="https://rob2468.github.io/2023/01/17/how-browser-work/"/>
<id>https://rob2468.github.io/2023/01/17/how-browser-work/</id>
<published>2023-01-17T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.022Z</updated>
<summary type="html"><h1 id=""><a href="#" class="headerlink" title=""></a></h1><h2 id="浏览器如何渲染页面"><a href="#浏览器如何渲染页面" class="headerlink" title="浏览器如何渲染页面"></a>浏览器如何渲染页面</h2><p><a 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></summary>
<category term="Web" scheme="https://rob2468.github.io/tags/Web/"/>
</entry>
<entry>
<title>加密通信</title>
<link href="https://rob2468.github.io/2023/01/12/encrypted-communication/"/>
<id>https://rob2468.github.io/2023/01/12/encrypted-communication/</id>
<published>2023-01-12T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.022Z</updated>
<summary type="html"><h1 id=""><a href="#" class="headerlink" title=""></a></h1><h2 id="OSI-模型"><a href="#OSI-模型" class="headerlink" title="OSI 模型"></a>OSI 模型</h2><p>OSI将计算机网络体系结构划分为以下七层,标有1~7,第1层在底部。</p>
<h3 id="第7层-应用层"><a href="#第7层-应用层" class="headerlink" title="第7层 应用层"></a>第7层 应用层</h3><p>应用层(Application Layer)提供为应用软件而设计的接口,以设置与另一应用软件之间的通信。例如:HTTP、HTTPS、FTP、Telnet、SSH、SMTP、POP3等。</p>
<h3 id="第6层-表现层"><a href="#第6层-表现层" class="headerlink" title="第6层 表现层"></a>第6层 表现层</h3><p>表现层(Presentation Layer)把数据转换为能与接收者的系统格式兼容并适合传输的格式。</p></summary>
<category term="网络" scheme="https://rob2468.github.io/tags/%E7%BD%91%E7%BB%9C/"/>
</entry>
<entry>
<title>2022年国庆回家</title>
<link href="https://rob2468.github.io/2022/10/06/national-day/"/>
<id>https://rob2468.github.io/2022/10/06/national-day/</id>
<published>2022-10-06T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.022Z</updated>
<summary type="html"><h1 id=""><a href="#" class="headerlink" title=""></a></h1><p>今年国庆提前请了两天假回老家,儿子终于实现了他的坐着高铁去旅行的梦想。</p>
<h2 id="儿子的行程"><a href="#儿子的行程" class="headerlink" title="儿子的行程"></a>儿子的行程</h2><p>儿子现在三岁半,越来越可爱,与亲戚朋友聚会时,无论什么时候都是焦点。这个国庆节他的行程最忙,先是坐高铁到盐城,第二天又被爷爷开车接到扬州,三天后爷爷又开车送回盐城,5号随我们坐高铁回到上海。在盐城和扬州还随着爷爷奶奶外公外婆到处走亲访友。</p>
<p>儿子正处于快速学习说话的阶段,大人不经意说过的话也能记住,然后不知道在什么时候说出来,让我们惊叹不已。不过大人说的一些不好的话,他也会学着说,着实让人苦恼。</p></summary>
<category term="生活" scheme="https://rob2468.github.io/tags/%E7%94%9F%E6%B4%BB/"/>
</entry>
<entry>
<title>高效篮球实战经验</title>
<link href="https://rob2468.github.io/2022/08/03/efficient-basketball/"/>
<id>https://rob2468.github.io/2022/08/03/efficient-basketball/</id>
<published>2022-08-03T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.022Z</updated>
<summary type="html"><h1 id=""><a href="#" class="headerlink" title=""></a></h1><p>下面这些点是我在野球场的实战经验:</p>
<ol>
<li><p><strong>投篮时手臂夹紧,保持持球手的小臂、大臂形成的平面与地面垂直</summary>
<category term="生活" scheme="https://rob2468.github.io/tags/%E7%94%9F%E6%B4%BB/"/>
</entry>
<entry>
<title>字体</title>
<link href="https://rob2468.github.io/2022/07/25/fonts/"/>
<id>https://rob2468.github.io/2022/07/25/fonts/</id>
<published>2022-07-25T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.021Z</updated>
<summary type="html"><h1 id=""><a href="#" class="headerlink" title=""></a></h1><h2 id="CSS-font-face"><a href="#CSS-font-face" class="headerlink" title="CSS @font-face"></a>CSS @font-face</h2><p>一个字体家族可能包含多个字型。</p>
<p>比如下图 Garamond 字体。第一个是正常的字型。第二个是将正常字型倾斜一定的角度,变成斜体字。第三个是真正的由字体设计师设计的 Garamond 斜体。</p>
<table>
<thead>
<tr>
<th align="center">1</th>
<th align="center">2</th>
<th align="center">3</th>
</tr>
</thead>
<tbody><tr>
<td align="center"><img src="https://media.githubusercontent.com/media/rob2468/rob2468.github.io/master/images/2022-07-25-garamondunstyled.jpeg"></td>
<td align="center"><img src="https://media.githubusercontent.com/media/rob2468/rob2468.github.io/master/images/2022-07-25-garamondartificialstyle.jpeg"></td>
<td align="center"><img src="https://media.githubusercontent.com/media/rob2468/rob2468.github.io/master/images/2022-07-25-garamonditalic.jpeg"></td>
</tr>
</tbody></table></summary>
<category term="CSS" scheme="https://rob2468.github.io/tags/CSS/"/>
</entry>
<entry>
<title>监听文件变化</title>
<link href="https://rob2468.github.io/2022/07/18/cubetransdev/"/>
<id>https://rob2468.github.io/2022/07/18/cubetransdev/</id>
<published>2022-07-18T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.021Z</updated>
<summary type="html"><h1 id=""><a href="#" class="headerlink" title=""></a></h1><h2 id="背景"><a href="#背景" class="headerlink" title="背景"></a>背景</h2><p>之前做了一个工具 CubeTrans,可以将 “Vue” 代码转译成了 React 代码,具体参考这篇文章 <a href="/2022/06/27/vue-to-react-cubetrans/" title="将 &quot;Vue&quot; 转译为 React">将 &quot;Vue&quot; 转译为 React</a>。为了让 CubeTrans 有用,又做了 CubeTransDev 工具,核心功能是实时监听文件变化。当监听到代码或 mock data 变化时,能够自动编译并实时预览。</p></summary>
<category term="JavaScript" scheme="https://rob2468.github.io/tags/JavaScript/"/>
<category term="webpack" scheme="https://rob2468.github.io/tags/webpack/"/>
</entry>
<entry>
<title>将 "Vue" 转译为 React</title>
<link href="https://rob2468.github.io/2022/06/27/vue-to-react-cubetrans/"/>
<id>https://rob2468.github.io/2022/06/27/vue-to-react-cubetrans/</id>
<published>2022-06-27T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.021Z</updated>
<summary type="html"><h1 id=""><a href="#" class="headerlink" title=""></a></h1><p>本文记录了如何将 Vue 语言转译为 React 语言。主要目的是,当你面对此类源代码分析工作时,能够找到一些结构化处理的思路。</p>
<h2 id="background">背景</h2>
<p>标题中的 Vue 加上了引号,因为要转译的 Vue 代码不是包含了所有 Vue 语言特性的代码,而是 Vue 的一个子集。<a href="https://mp.weixin.qq.com/s?__biz=Mzg4MDY0ODk0Ng==&mid=2247483885&idx=1&sn=f3a6a1993bf7b867d9ecf421c454e5bf&chksm=cf70b670f8073f66188329e479a37b4d8866686f98a2fc3a101d9ff8c972b835dd0eb453e785&mpshare=1&scene=1&srcid=0627Aj7Dl7Gj79iaUf7aQ3CP&sharer_sharetime=1656314563040&sharer_shareid=e31ba76f7466506e9f6b0c0056037e45&exportkey=AYxF2XQbEeP5I93T2nntDVI=&acctmode=0&pass_ticket=jGXWXRnxf1OTy8uzRI+uwUCe2k/z1/l5kervjNbaYHcrNHil38F7XZauvj7FMqy/&wx_header=0#rd">Cube 技术解读 | 支付宝新一代动态化技术架构与选型综述</a> 这篇文章介绍了支付宝中使用的动态化框架,“对于Cube卡片,支持基于精简vue的card-dsl。”</p>
<p>Cube 卡片是一种客户端技术,进行 Cube 卡片研发需要进行繁琐的开发环境配置,将 Vue 转译为 React 能够在浏览器中实时预览,提升研发效率。将精简的 Vue 语法转译为标准的 Vue 语法也能实现浏览器预览,但公司里的 H5 项目均采用 React 开发,转译为 React 能够在 H5 项目中复用已有的 Cube 卡片。</p>
<p>暂将这个工具命名为 CubeTrans。</p></summary>
<category term="AST" scheme="https://rob2468.github.io/tags/AST/"/>
</entry>
<entry>
<title>养娃趣事</title>
<link href="https://rob2468.github.io/2021/12/26/fun-facts-about-raising-a-baby/"/>
<id>https://rob2468.github.io/2021/12/26/fun-facts-about-raising-a-baby/</id>
<published>2021-12-26T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.021Z</updated>
<summary type="html"><h1 class=""></h1>
<h2>2021-12-15</h2>
<p>妈妈带着宝宝看“好饿的小蛇”这本书,用手指一个字一个字的指,教宝宝认字。</p></summary>
<category term="生活" scheme="https://rob2468.github.io/tags/%E7%94%9F%E6%B4%BB/"/>
</entry>
<entry>
<title>耶鲁大学公开课:死亡-读后感</title>
<link href="https://rob2468.github.io/2021/07/31/open-yale-courses-death/"/>
<id>https://rob2468.github.io/2021/07/31/open-yale-courses-death/</id>
<published>2021-07-31T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.021Z</updated>
<summary type="html"><h1 class=""></h1>
<h2 class="">为什么要思考死亡</h2>
<p>由于对死亡的认识所带来的反省,致使人类获得形而上学的见解,并由此得到一种慰藉。所有宗教和哲学体系,主要即为针对这种目的而发,以帮助人们培养反省的理性,作为对死亡观念的解毒剂。(叔本华)</p></summary>
<category term="读书笔记" scheme="https://rob2468.github.io/tags/%E8%AF%BB%E4%B9%A6%E7%AC%94%E8%AE%B0/"/>
</entry>
<entry>
<title>儿子的想象力</title>
<link href="https://rob2468.github.io/2021/07/11/jing-imagination/"/>
<id>https://rob2468.github.io/2021/07/11/jing-imagination/</id>
<published>2021-07-11T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.021Z</updated>
<summary type="html"><h1 class=""></h1>
<ul>
<li>在席子上尿了尿,看到形状,说像云朵。又好气,又好笑。</li>
</ul></summary>
<category term="生活" scheme="https://rob2468.github.io/tags/%E7%94%9F%E6%B4%BB/"/>
</entry>
<entry>
<title>简单问题、复杂问题、混沌问题</title>
<link href="https://rob2468.github.io/2021/01/09/different-problems/"/>
<id>https://rob2468.github.io/2021/01/09/different-problems/</id>
<published>2021-01-09T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.021Z</updated>
<summary type="html"><h1 class=""></h1>
<p>生活里需要解决各类问题,如果加以分类,可以分成简单问题、复杂问题、混沌问题三类。之前的领导,在跟我一次面对面的沟通中,提到了这种分类方式。感觉角度很有意思,并且细想起来,跟个人的体会也很相似。</p></summary>
<category term="思考" scheme="https://rob2468.github.io/tags/%E6%80%9D%E8%80%83/"/>
</entry>
<entry>
<title>与儿子一起的睡前阅读</title>
<link href="https://rob2468.github.io/2020/12/27/read-with-my-son/"/>
<id>https://rob2468.github.io/2020/12/27/read-with-my-son/</id>
<published>2020-12-27T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.021Z</updated>
<summary type="html"><h1></h1>
<p>今天周末,白天加班,晚上回家吃晚饭。可能一天没见到爸爸,儿子晚上跟我特别亲,叫了好多声“爸爸”。吃晚饭时爬到我腿上讨吃的。睡觉前跑到书架前翻书看,我顺势把他抱到腿上,一起看起书来。小家伙安安静静的跟我待了好久。</p></summary>
<category term="生活" scheme="https://rob2468.github.io/tags/%E7%94%9F%E6%B4%BB/"/>
</entry>
<entry>
<title>不同的销售</title>
<link href="https://rob2468.github.io/2020/12/05/different-sales/"/>
<id>https://rob2468.github.io/2020/12/05/different-sales/</id>
<published>2020-12-05T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.021Z</updated>
<summary type="html"><h1></h1>
<p>之前跟几个房产中介打过交道,房产中介就是做房屋销售的人。销售 A 从事二手房交易,是在附近的中介门面认识的,当时毕业不久,筹划购买住房。跟着销售 A 看了不少房子,交往了挺久。销售 A 人很好,工作认真负责,也有销售那种圆滑,永远不会让你感受到冒犯。其实我对房屋销售了解的不多,只能发表一些网上看到的简单观点,挺希望从销售身上学习更多的知识。但是销售 A 对于我发表的观点基本上全部表示赞同,甚至还会举出一些例子来证明我的观点,让人哭笑不得。</p></summary>
<category term="思考" scheme="https://rob2468.github.io/tags/%E6%80%9D%E8%80%83/"/>
<category term="观察" scheme="https://rob2468.github.io/tags/%E8%A7%82%E5%AF%9F/"/>
</entry>
<entry>
<title>如何开发孩子的阅读潜力</title>
<link href="https://rob2468.github.io/2020/08/08/child-reading/"/>
<id>https://rob2468.github.io/2020/08/08/child-reading/</id>
<published>2020-08-08T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.021Z</updated>
<summary type="html"><h1 class="title"></h1>
<p>周育如·台湾清华大学幼教系主任, 得到 App</p></summary>
<category term="读书笔记" scheme="https://rob2468.github.io/tags/%E8%AF%BB%E4%B9%A6%E7%AC%94%E8%AE%B0/"/>
</entry>
<entry>
<title>高效能人士的七个习惯,读书笔记</title>
<link href="https://rob2468.github.io/2020/05/24/the-7-habits-of-highly-effectivce-people/"/>
<id>https://rob2468.github.io/2020/05/24/the-7-habits-of-highly-effectivce-people/</id>
<published>2020-05-24T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.021Z</updated>
<summary type="html"><h1 class="title"></h1>
<p>作者 史蒂芬.科维</p>
<p>得之太易必不受珍惜。唯有付出代价,万物始有价值。上苍深知如何为其产品制定合理的价格。</p></summary>
<category term="读书笔记" scheme="https://rob2468.github.io/tags/%E8%AF%BB%E4%B9%A6%E7%AC%94%E8%AE%B0/"/>
</entry>
<entry>
<title>使用 xcodeproj 构建脚本</title>
<link href="https://rob2468.github.io/2020/05/14/xcodeproj/"/>
<id>https://rob2468.github.io/2020/05/14/xcodeproj/</id>
<published>2020-05-14T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.021Z</updated>
<summary type="html"><h1 class=""></h1>
<p><a href="https://github.com/CocoaPods/Xcodeproj" target="_blank">xcodeproj</a> 是 CocoaPods 的一个子项目,能够创建和修改 Xcode 工程。基于 xcodeproj 的能力编写脚本,可以完成许多 Xcode 工程配置的自动化工作。</p></summary>
<category term="iOS" scheme="https://rob2468.github.io/tags/iOS/"/>
<category term="工程实践" scheme="https://rob2468.github.io/tags/%E5%B7%A5%E7%A8%8B%E5%AE%9E%E8%B7%B5/"/>
<category term="xcodeproj" scheme="https://rob2468.github.io/tags/xcodeproj/"/>
</entry>
<entry>
<title>HttpServerDebug 视图层级之数据结构设计</title>
<link href="https://rob2468.github.io/2019/09/20/hsd-view-hierarchy-data-structure/"/>
<id>https://rob2468.github.io/2019/09/20/hsd-view-hierarchy-data-structure/</id>
<published>2019-09-20T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.021Z</updated>
<summary type="html"><h1 class="title"></h1>
<h2 id="section_1">前言</h2>
<p><a href="https://github.com/rob2468/HttpServerDebug" target="_blank">HSD(HttpServerDebug)</a> 实现了类似 Xcode 中的视图调试功能,如下图所示。在 HSD 中,该功能的核心是视图数据,视图数据包括视图的层次、属性等。本文描述视图数据的组织方式。</p></summary>
<category term="iOS" scheme="https://rob2468.github.io/tags/iOS/"/>
<category term="工程实践" scheme="https://rob2468.github.io/tags/%E5%B7%A5%E7%A8%8B%E5%AE%9E%E8%B7%B5/"/>
<category term="HttpServerDebug" scheme="https://rob2468.github.io/tags/HttpServerDebug/"/>
</entry>
<entry>
<title>指数基金基础知识</title>
<link href="https://rob2468.github.io/2019/07/28/index-fund-investment-fundation/"/>
<id>https://rob2468.github.io/2019/07/28/index-fund-investment-fundation/</id>
<published>2019-07-28T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.021Z</updated>
<summary type="html"><h1 class="title"></h1>
<h2 id="section_1">前言</h2>
<p>投资是一项必备技能,平时通过蚂蚁财富等平台买了不少理财产品,零散之中也学到了一些指数基金的知识。公司最近发了一本书,由天弘指数基金研究小组出品的《指数基金/投资至简》,作为一名非专业人士,通过这本书学到了一些指数基金的知识。本文内容主要来自于这本书。</p></summary>
<category term="读书笔记" scheme="https://rob2468.github.io/tags/%E8%AF%BB%E4%B9%A6%E7%AC%94%E8%AE%B0/"/>
</entry>
<entry>
<title>HSB 颜色系统实践入门(译)</title>
<link href="https://rob2468.github.io/2019/07/06/hsb-practitioners-primer/"/>
<id>https://rob2468.github.io/2019/07/06/hsb-practitioners-primer/</id>
<published>2019-07-06T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.021Z</updated>
<summary type="html"><h1 class="title"></h1>
<h2>前言</h2>
<p>本文翻译自 <a href="https://learnui.design/blog/the-hsb-color-system-practicioners-primer.html" target="_blank">The HSB Color System: A Practitioner’s Primer</a>。</p></summary>
<category term="翻译" scheme="https://rob2468.github.io/tags/%E7%BF%BB%E8%AF%91/"/>
<category term="读书笔记" scheme="https://rob2468.github.io/tags/%E8%AF%BB%E4%B9%A6%E7%AC%94%E8%AE%B0/"/>
</entry>
<entry>
<title>为 GCDWebServer 引入 WebSocket 支持</title>
<link href="https://rob2468.github.io/2019/06/15/hsd-websocket/"/>
<id>https://rob2468.github.io/2019/06/15/hsd-websocket/</id>
<published>2019-06-15T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.021Z</updated>
<summary type="html"><h1 class="title"></h1>
<h2 id="section_1">前言</h2>
<p>借助一些工具库,iOS 设备可以配置成为服务器,在此之上可以做许多有意思的事情。例如,<a href="https://github.com/rob2468/HttpServerDebug" target="_blank">HttpServerDebug</a> 基于这种能力,提供了现场调试 iOS App 的能力。</p></summary>
<category term="HttpServerDebug" scheme="https://rob2468.github.io/tags/HttpServerDebug/"/>
<category term="WebSocket" scheme="https://rob2468.github.io/tags/WebSocket/"/>
<category term="网络" scheme="https://rob2468.github.io/tags/%E7%BD%91%E7%BB%9C/"/>
</entry>
<entry>
<title>JavaScript Date 和时区</title>
<link href="https://rob2468.github.io/2019/06/10/js-date-and-zone/"/>
<id>https://rob2468.github.io/2019/06/10/js-date-and-zone/</id>
<published>2019-06-10T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.020Z</updated>
<summary type="html"><h1 class="title"></h1>
<h2 id='section_1'>概述</h2>
<p>JS 中使用 <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date" target="_blank">Date</a> 类型记录时间。Date 类型是对时间的抽象封装,它提供了许多操作时间的便利方法。本文整理了如何使用 Date 来处理时间,以及解决时区转换带来的问题。</p></summary>
<category term="工程实践" scheme="https://rob2468.github.io/tags/%E5%B7%A5%E7%A8%8B%E5%AE%9E%E8%B7%B5/"/>
<category term="JavaScript" scheme="https://rob2468.github.io/tags/JavaScript/"/>
</entry>
<entry>
<title>ASCII 编码对照表</title>
<link href="https://rob2468.github.io/2019/04/16/lookuptables/"/>
<id>https://rob2468.github.io/2019/04/16/lookuptables/</id>
<published>2019-04-16T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.020Z</updated>
<summary type="html"><h1></h1>
<p><img src="https://media.githubusercontent.com/media/rob2468/rob2468.github.io/master/images/2019-04-16-asciifull.gif"></p>
<h3</summary>
<category term="资源" scheme="https://rob2468.github.io/tags/%E8%B5%84%E6%BA%90/"/>
</entry>
<entry>
<title>CSS 知识</title>
<link href="https://rob2468.github.io/2019/04/09/css-knowledge/"/>
<id>https://rob2468.github.io/2019/04/09/css-knowledge/</id>
<published>2019-04-09T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.020Z</updated>
<summary type="html"><h1 id=""><a href="#" class="headerlink" title=""></a></h1><h2 id="选择器的特殊性"><a href="#选择器的特殊性" class="headerlink" title="选择器的特殊性"></a>选择器的特殊</summary>
<category term="CSS" scheme="https://rob2468.github.io/tags/CSS/"/>
</entry>
<entry>
<title>博客评论系统的更新历程</title>
<link href="https://rob2468.github.io/2019/03/30/blog-comment-system/"/>
<id>https://rob2468.github.io/2019/03/30/blog-comment-system/</id>
<published>2019-03-30T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.020Z</updated>
<summary type="html"><h1 class="title"></h1>
<p></p>
这个博客站点使用 Github Pages 搭建,能够提供静态页面的展示,但是没有一套现成的评论系统。从前年开始,就一直在尝试各种方法增加评论功能,每次更新都是方案的重大改变。最终的实现还是使用传统方案,自建服务器,使用数据库存储。应该以后就会围绕这个方案完善下去,好在博客一直没啥人气,我可以慢慢折腾 ==。</summary>
<category term="工程实践" scheme="https://rob2468.github.io/tags/%E5%B7%A5%E7%A8%8B%E5%AE%9E%E8%B7%B5/"/>
</entry>
<entry>
<title>蚂蚁金服三个月</title>
<link href="https://rob2468.github.io/2019/03/10/three-mothods-in-antfin/"/>
<id>https://rob2468.github.io/2019/03/10/three-mothods-in-antfin/</id>
<published>2019-03-10T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.020Z</updated>
<summary type="html"><h1></h1>
<p>12月中旬离开百度加入蚂蚁金服。三个月时间转瞬即逝,马上就要提交试用期绩效评估,趁着这个时间自己也总结和梳理下最近的思考。</p></summary>
<category term="思考" scheme="https://rob2468.github.io/tags/%E6%80%9D%E8%80%83/"/>
</entry>
<entry>
<title>设计模式</title>
<link href="https://rob2468.github.io/2019/01/12/design-pattern/"/>
<id>https://rob2468.github.io/2019/01/12/design-pattern/</id>
<published>2019-01-12T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.020Z</updated>
<summary type="html"><h1 id=""><a href="#" class="headerlink" title=""></a></h1><h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><p>模型是在某情景(con</summary>
<category term="设计模式" scheme="https://rob2468.github.io/tags/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/"/>
<category term="MVC" scheme="https://rob2468.github.io/tags/MVC/"/>
</entry>
<entry>
<title>JavaScript 原型链和继承机制</title>
<link href="https://rob2468.github.io/2018/11/21/javascript-prototype-chain/"/>
<id>https://rob2468.github.io/2018/11/21/javascript-prototype-chain/</id>
<published>2018-11-21T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.020Z</updated>
<summary type="html"><h1 id=""><a href="#" class="headerlink" title=""></a></h1><h2 id="核心概念"><a href="#核心概念" class="headerlink" title="核心概念"></a>核心概念</h2><p>js </summary>
<category term="JavaScript" scheme="https://rob2468.github.io/tags/JavaScript/"/>
</entry>
<entry>
<title>视图裁剪</title>
<link href="https://rob2468.github.io/2018/10/12/clipped-content/"/>
<id>https://rob2468.github.io/2018/10/12/clipped-content/</id>
<published>2018-10-12T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.020Z</updated>
<summary type="html"><h1></h1>
<h2>前言</h2>
<p><a href="https://github.com/rob2468/HttpServerDebug" target="_blank">HttpServerDebug</a> 实现了类似 Xcode Debug View Hierarchy 功能。客户端提供信息,前端绘制并提供交互能力,实现视图调试功能。</p>
<p>视图调试其中一项功能是 Show Clipped Content,虽然不知道 Xcode 的实现方式,但是通过计算我们也可以拿到同样的信息。本文说明 HttpServerDebug 中的实现方案。</p></summary>
<category term="HttpServerDebug" scheme="https://rob2468.github.io/tags/HttpServerDebug/"/>
</entry>
<entry>
<title>Objective-C Block</title>
<link href="https://rob2468.github.io/2018/09/30/block/"/>
<id>https://rob2468.github.io/2018/09/30/block/</id>
<published>2018-09-30T00:00:00.000Z</published>
<updated>2026-05-22T16:35:29.020Z</updated>
<summary type="html"><h1 class="title"></h1>
<h2>前言</h2>
<p>本文内容主要来自 Pro Multithreading and Memory Management for iOS and OS X with ARC, Grand Central Dispatch, and Blocks 这本书,参考<a href="/2016/12/29/reading-notes-pro-multithreading-and-memory-management-for-ios-and-osx-with-arc-grand-central-dispatch-and-blocks/">这篇文章</a>。</p>
<p>Block 是语言级别的语法,是 C 语言的扩展。Block 可以解释为“包含了局部变量的匿名函数(anonymous functions together with automatic (local) variables)”。本文不多说 Block 的使用方法,着重讨论 Block 的实现机制。</p></summary>
<category term="iOS" scheme="https://rob2468.github.io/tags/iOS/"/>
<category term="Objective-C" scheme="https://rob2468.github.io/tags/Objective-C/"/>
</entry>
<entry>
<title>排序算法,伪代码实现</title>
<link href="https://rob2468.github.io/2018/09/17/sort/"/>