-
Notifications
You must be signed in to change notification settings - Fork 0
/
rss.xml
5028 lines (4831 loc) · 938 KB
/
rss.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
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"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<atom:link href="https://jiangxj.top/vuepress/vuepress/rss.xml" rel="self" type="application/rss+xml"/>
<title>Docs Library by #XJ</title>
<link>https://jiangxj.top/vuepress/vuepress/</link>
<description>Vue-driven documents generator based on vuepress-theme-hope</description>
<language>zh-CN</language>
<pubDate>Sun, 07 Jan 2024 05:47:57 GMT</pubDate>
<lastBuildDate>Sun, 07 Jan 2024 05:47:57 GMT</lastBuildDate>
<generator>@mr-hope/vuepress-plugin-feed</generator>
<docs>https://validator.w3.org/feed/docs/rss2.html</docs>
<category>Guide</category>
<category>guide</category>
<category>使用指南</category>
<category>深度强化学习</category>
<category>MachineLearning</category>
<category>自然语言处理</category>
<category>ComputerScience</category>
<category>Maths</category>
<category>NuclearScience</category>
<category>PapersReading</category>
<item>
<title>Component disabled</title>
<link>https://jiangxj.top/vuepress/vuepress/en/guide/disable/</link>
<guid>https://jiangxj.top/vuepress/vuepress/en/guide/disable/</guid>
<source url="https://jiangxj.top/vuepress/vuepress/rss.xml">Component disabled</source>
<description>&lt;p&gt;You can disable some functions on the page by setting the Frontmatter of the page.&lt;/p&gt;
</description>
<category>Guide</category>
<content:encoded><![CDATA[<p>You can disable some functions on the page by setting the Frontmatter of the page.</p>
<p>These should be disabled on this page:</p>
<ul>
<li>Navbar</li>
<li>Sidebar</li>
<li>Breadcrumb</li>
<li>Page information</li>
<li>Contributors</li>
<li>Edit link</li>
<li>Update time</li>
<li>Prev/Next link</li>
<li>Comment</li>
<li>Footer</li>
<li>Back to top button</li>
</ul>
]]></content:encoded>
</item>
<item>
<title>Markdown Enhance</title>
<link>https://jiangxj.top/vuepress/vuepress/en/guide/markdown/</link>
<guid>https://jiangxj.top/vuepress/vuepress/en/guide/markdown/</guid>
<source url="https://jiangxj.top/vuepress/vuepress/rss.xml">Markdown Enhance</source>
<description>&lt;p&gt;&lt;code&gt;vuepress-theme-hope&lt;/code&gt; enables more syntax in Markdown via the built-in &lt;a href=&quot;https://vuepress-theme-hope.github.io/v1/md-enhance/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;md-enhance&lt;/a&gt; plugin.&lt;/p&gt;
</description>
<category>Guide</category>
<content:encoded><![CDATA[<p><code>vuepress-theme-hope</code> enables more syntax in Markdown via the built-in <a href="https://vuepress-theme-hope.github.io/v1/md-enhance/" target="_blank" rel="noopener noreferrer">md-enhance</a> plugin.</p>
<h2 id="enable-all"> Enable all</h2>
<p>You can set <code>themeconfig.mdEnhance.enableAll</code> to enable all features of the <a href="https://vuepress-theme-hope.github.io/v1/md-enhance/" target="_blank" rel="noopener noreferrer">md-enhance</a> plugin.</p>
<div><div><br><br><div> </div><div> </div><div> </div><br><br><br></div><pre><code>module<span>.</span>exports <span>=</span> <span>{</span>
<span>themeConfig</span><span>:</span> <span>{</span>
<span>mdEnhance</span><span>:</span> <span>{</span>
<span>enableAll</span><span>:</span> <span>true</span><span>,</span>
<span>}</span><span>,</span>
<span>}</span><span>,</span>
<span>}</span><span>;</span>
</code></pre><div><span>1</span><br><span>2</span><br><span>3</span><br><span>4</span><br><span>5</span><br><span>6</span><br><span>7</span><br></div></div><h2 id="new-feature"> New Feature</h2>
<h3 id="superscript-and-subscript"> Superscript and Subscript</h3>
<p>19<sup>th</sup> H<sub>2</sub>O</p>
<details><summary>Code</summary>
<div><pre><code>19^th^ H<span><span>~</span><span>2</span><span>~</span></span>O
</code></pre>
<div><span>1</span><br></div></div></details>
<ul>
<li><a href="https://vuepress-theme-hope.github.io/v1/guide/markdown/sup-sub.html" target="_blank" rel="noopener noreferrer">View Detail</a></li>
</ul>
<h3 id="align"> Align</h3>
<p>::: center</p>
<p>I am center</p>
<p>:::</p>
<p>::: right</p>
<p>I am right align</p>
<p>:::</p>
<details><summary>Code</summary>
<div><pre><code>::: center
I am center
:::
::: right
I am right align
:::
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br><span>4</span><br><span>5</span><br><span>6</span><br><span>7</span><br><span>8</span><br><span>9</span><br><span>10</span><br><span>11</span><br></div></div></details>
<ul>
<li><a href="https://vuepress-theme-hope.github.io/v1/guide/markdown/align.html" target="_blank" rel="noopener noreferrer">View Detail</a></li>
</ul>
<h3 id="footnote"> Footnote</h3>
<p>This text has footnote<sup></sup>.</p>
<details><summary>Code</summary>
<div><pre><code>This text has footnote[^first].
<span><span>[</span><span>^first</span><span>]</span><span>:</span> This</span> is footnote content
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br></div></div></details>
<ul>
<li><a href="https://vuepress-theme-hope.github.io/v1/guide/markdown/footnote.html" target="_blank" rel="noopener noreferrer">View Detail</a></li>
</ul>
<h3 id="mark"> Mark</h3>
<p>You can mark ==important words== .</p>
<details><summary>Code</summary>
<div><pre><code>You can mark ==important words== .
</code></pre>
<div><span>1</span><br></div></div></details>
<ul>
<li><a href="https://vuepress-theme-hope.github.io/v1/guide/markdown/mark.html" target="_blank" rel="noopener noreferrer">View Detail</a></li>
</ul>
<h3 id="tasklist"> Tasklist</h3>
<ul>
<li>[x] Plan A</li>
<li>[ ] Plan B</li>
</ul>
<details><summary>Code</summary>
<div><pre><code><span>-</span> [x] Plan A
<span>-</span> [ ] Plan B
</code></pre>
<div><span>1</span><br><span>2</span><br></div></div></details>
<ul>
<li><a href="https://vuepress-theme-hope.github.io/v1/guide/markdown/tasklist.html" target="_blank" rel="noopener noreferrer">View Detail</a></li>
</ul>
<h3 id="flowchart"> Flowchart</h3>
<i>Not supported content</i><details><summary>Code</summary>
<div><pre><code><span><span>```</span><span>flow</span>
<span>cond=>condition: Process?
process=>operation: Process
e=>end: End
cond(yes)->process->e
cond(no)->e</span>
<span>```</span></span>
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br><span>4</span><br><span>5</span><br><span>6</span><br><span>7</span><br><span>8</span><br></div></div></details>
<ul>
<li><a href="https://vuepress-theme-hope.github.io/v1/guide/markdown/flowchart.html" target="_blank" rel="noopener noreferrer">View Detail</a></li>
</ul>
<h2 id="mermaid"> Mermaid</h2>
<Mermaid id="mermaid-64a57026" data-code="graph%20TD%3B%0A%20%20%20%20A--%3EB%3B%0A%20%20%20%20A--%3EC%3B%0A%20%20%20%20B--%3ED%3B%0A%20%20%20%20C--%3ED%3B%0A"></Mermaid><details><summary>Code</summary>
<div><pre><code><span><span>```</span><span>mermaid</span>
<span>graph TD;
A-->B;
A-->C;
B-->D;
C-->D;</span>
<span>```</span></span>
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br><span>4</span><br><span>5</span><br><span>6</span><br><span>7</span><br></div></div></details>
<ul>
<li><a href="https://vuepress-theme-hope.github.io/v1/guide/markdown/mermaid.html" target="_blank" rel="noopener noreferrer">View Detail</a></li>
</ul>
<h3 id="tex"> Tex</h3>
<p class='katex-block'><span><span><span><i>Not supported content</i></span><span aria-hidden="true"><span><span style="height:2.4em;vertical-align:-0.95em;"></span><span><span></span><span><span><span><span style="height:1.3714em;"><span style="top:-2.314em;"><span style="height:3em;"></span><span><span style="margin-right:0.05556em;">∂</span><span><span style="margin-right:0.03588em;">ω</span><span><span><span><span style="height:0.5904em;"><span style="top:-2.989em;margin-right:0.05em;"><span style="height:2.7em;"></span><span><span style="margin-right:0.02778em;">r</span></span></span></span></span></span></span></span></span></span><span style="top:-3.23em;"><span style="height:3em;"></span><span style="border-bottom-width:0.04em;"></span></span><span style="top:-3.677em;"><span style="height:3em;"></span><span><span><span style="margin-right:0.05556em;">∂</span><span><span><span><span style="height:0.6644em;"><span style="top:-3.063em;margin-right:0.05em;"><span style="height:2.7em;"></span><span><span style="margin-right:0.02778em;">r</span></span></span></span></span></span></span></span></span></span></span><span></span></span><span><span style="height:0.686em;"><span></span></span></span></span></span><span></span></span><span style="margin-right:0.1667em;"></span><span><span style="top:0em;"><span>(</span></span><span><span></span><span><span><span><span style="height:1.3414em;"><span style="top:-2.314em;"><span style="height:3em;"></span><span><span style="margin-right:0.03588em;">ω</span></span></span><span style="top:-3.23em;"><span style="height:3em;"></span><span style="border-bottom-width:0.04em;"></span></span><span style="top:-3.677em;"><span style="height:3em;"></span><span><span><span style="margin-right:0.03588em;">y</span><span><span><span><span style="height:0.6644em;"><span style="top:-3.063em;margin-right:0.05em;"><span style="height:2.7em;"></span><span><span><span style="margin-right:0.03588em;">ω</span></span></span></span></span></span></span></span></span></span></span></span><span></span></span><span><span style="height:0.686em;"><span></span></span></span></span></span><span></span></span><span style="top:0em;"><span>)</span></span></span><span style="margin-right:0.2778em;"></span><span>=</span><span style="margin-right:0.2778em;"></span></span><span><span style="height:3.0277em;vertical-align:-1.2777em;"></span><span><span style="top:0em;"><span>(</span></span><span><span></span><span><span><span><span style="height:1.3414em;"><span style="top:-2.314em;"><span style="height:3em;"></span><span><span style="margin-right:0.03588em;">ω</span></span></span><span style="top:-3.23em;"><span style="height:3em;"></span><span style="border-bottom-width:0.04em;"></span></span><span style="top:-3.677em;"><span style="height:3em;"></span><span><span><span style="margin-right:0.03588em;">y</span><span><span><span><span style="height:0.6644em;"><span style="top:-3.063em;margin-right:0.05em;"><span style="height:2.7em;"></span><span><span><span style="margin-right:0.03588em;">ω</span></span></span></span></span></span></span></span></span></span></span></span><span></span></span><span><span style="height:0.686em;"><span></span></span></span></span></span><span></span></span><span style="top:0em;"><span>)</span></span></span><span style="margin-right:0.1667em;"></span><span><span style="top:0em;"><span>{</span></span><span>(</span><span>lo<span style="margin-right:0.01389em;">g</span></span><span style="margin-right:0.1667em;"></span><span style="margin-right:0.03588em;">y</span><span><span>)</span><span><span><span><span style="height:0.7144em;"><span style="top:-3.113em;margin-right:0.05em;"><span style="height:2.7em;"></span><span><span style="margin-right:0.02778em;">r</span></span></span></span></span></span></span></span><span style="margin-right:0.2222em;"></span><span>+</span><span style="margin-right:0.2222em;"></span><span><span><span><span style="height:1.6514em;"><span style="top:-1.8723em;margin-left:0em;"><span style="height:3.05em;"></span><span><span><span>i</span><span>=</span><span>1</span></span></span></span><span style="top:-3.05em;"><span style="height:3.05em;"></span><span><span>∑</span></span></span><span style="top:-4.3em;margin-left:0em;"><span style="height:3.05em;"></span><span><span style="margin-right:0.02778em;">r</span></span></span></span><span></span></span><span><span style="height:1.2777em;"><span></span></span></span></span></span><span style="margin-right:0.1667em;"></span><span><span></span><span><span><span><span style="height:1.5017em;"><span style="top:-2.314em;"><span style="height:3em;"></span><span><span><span style="margin-right:0.03588em;">ω</span><span><span><span><span style="height:0.7507em;"><span style="top:-2.989em;margin-right:0.05em;"><span style="height:2.7em;"></span><span><span>i</span></span></span></span></span></span></span></span></span></span><span style="top:-3.23em;"><span style="height:3em;"></span><span style="border-bottom-width:0.04em;"></span></span><span style="top:-3.677em;"><span style="height:3em;"></span><span><span>(</span><span>−</span><span>1</span><span><span>)</span><span><span><span><span style="height:0.8247em;"><span style="top:-3.063em;margin-right:0.05em;"><span style="height:2.7em;"></span><span><span>i</span></span></span></span></span></span></span></span><span style="margin-right:0.02778em;">r</span><span style="margin-right:0.1667em;"></span><span>⋯</span><span style="margin-right:0.1667em;"></span><span>(</span><span style="margin-right:0.02778em;">r</span><span style="margin-right:0.2222em;"></span><span>−</span><span style="margin-right:0.2222em;"></span><span>i</span><span style="margin-right:0.2222em;"></span><span>+</span><span style="margin-right:0.2222em;"></span><span>1</span><span>)</span><span>(</span><span>lo<span style="margin-right:0.01389em;">g</span></span><span style="margin-right:0.1667em;"></span><span style="margin-right:0.03588em;">y</span><span><span>)</span><span><span><span><span style="height:0.8247em;"><span style="top:-3.063em;margin-right:0.05em;"><span style="height:2.7em;"></span><span><span><span style="margin-right:0.02778em;">r</span><span>−</span><span>i</span></span></span></span></span></span></span></span></span></span></span></span><span></span></span><span><span style="height:0.686em;"><span></span></span></span></span></span><span></span></span><span style="top:0em;"><span>}</span></span></span></span></span></span></span></p>
<details><summary>Code</summary>
<div><pre><code>$$
\frac {\partial^r} {\partial \omega^r} \left(\frac {y^{\omega}} {\omega}\right)
= \left(\frac {y^{\omega}} {\omega}\right) \left\{(\log y)^r + \sum_{i=1}^r \frac {(-1)^i r \cdots (r-i+1) (\log y)^{r-i}} {\omega^i} \right\}
$$
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br><span>4</span><br></div></div></details>
<ul>
<li><a href="https://vuepress-theme-hope.github.io/v1/guide/markdown/tex.html" target="_blank" rel="noopener noreferrer">View Detail</a></li>
</ul>
<h3 id="demo"> Demo</h3>
<div
id="code-demo-688e9568"
data-title="A%20normal%20demo"
data-code="%7B%22html%22%3A%22%3Ch1%3EMr.Hope%3C%2Fh1%3E%5Cn%3Cp%3EIs%20%3Cspan%20id%3D%5C%22very%5C%22%3Every%3C%2Fspan%3E%20handsome%3C%2Fp%3E%5Cn%22%2C%22js%22%3A%22document.querySelector(%5C%22%23very%5C%22).addEventListener(%5C%22click%5C%22%2C%20()%20%3D%3E%20%7B%5Cn%20%20alert(%5C%22Very%20handsome!%5C%22)%3B%5Cn%7D)%3B%5Cn%22%2C%22css%22%3A%22span%20%7B%5Cn%20%20color%3A%20red%3B%5Cn%7D%5Cn%22%7D"
>
<div>
<div>
<div><pre><code><span><span><span><</span>h1</span><span>></span></span>Mr.Hope<span><span><span></</span>h1</span><span>></span></span>
<span><span><span><</span>p</span><span>></span></span>Is <span><span><span><</span>span</span> <span>id</span><span><span>=</span><span>"</span>very<span>"</span></span><span>></span></span>very<span><span><span></</span>span</span><span>></span></span> handsome<span><span><span></</span>p</span><span>></span></span>
</code></pre>
<div><span>1</span><br><span>2</span><br></div></div><div><pre><code>document<span>.</span><span>querySelector</span><span>(</span><span>"#very"</span><span>)</span><span>.</span><span>addEventListener</span><span>(</span><span>"click"</span><span>,</span> <span>(</span><span>)</span> <span>=></span> <span>{</span>
<span>alert</span><span>(</span><span>"Very handsome!"</span><span>)</span><span>;</span>
<span>}</span><span>)</span><span>;</span>
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br></div></div><div><pre><code><span>span</span> <span>{</span>
<span>color</span><span>:</span> red<span>;</span>
<span>}</span>
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br></div></div>
</div>
</div>
</div>
<details><summary>Code</summary>
<div><pre><code>::: demo A normal demo
<span><span>```</span><span>html</span>
<span><span><span><span><</span>h1</span><span>></span></span>Mr.Hope<span><span><span></</span>h1</span><span>></span></span>
<span><span><span><</span>p</span><span>></span></span>Is <span><span><span><</span>span</span> <span>id</span><span><span>=</span><span>"</span>very<span>"</span></span><span>></span></span>very<span><span><span></</span>span</span><span>></span></span> handsome<span><span><span></</span>p</span><span>></span></span></span>
<span>```</span></span>
<span><span>```</span><span>js</span>
<span>document<span>.</span><span>querySelector</span><span>(</span><span>"#very"</span><span>)</span><span>.</span><span>addEventListener</span><span>(</span><span>"click"</span><span>,</span> <span>(</span><span>)</span> <span>=></span> <span>{</span>
<span>alert</span><span>(</span><span>"Very handsome!"</span><span>)</span><span>;</span>
<span>}</span><span>)</span><span>;</span></span>
<span>```</span></span>
<span><span>```</span><span>css</span>
<span><span>span</span> <span>{</span>
<span>color</span><span>:</span> red<span>;</span>
<span>}</span></span>
<span>```</span></span>
:::
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br><span>4</span><br><span>5</span><br><span>6</span><br><span>7</span><br><span>8</span><br><span>9</span><br><span>10</span><br><span>11</span><br><span>12</span><br><span>13</span><br><span>14</span><br><span>15</span><br><span>16</span><br><span>17</span><br><span>18</span><br><span>19</span><br><span>20</span><br></div></div></details>
<div
id="code-demo-4ead1181"
data-type="react"
data-title="A%20react%20demo"
data-code="%7B%22js%22%3A%22export%20default%20class%20App%20extends%20React.Component%20%7B%5Cn%20%20constructor(props)%20%7B%5Cn%20%20%20%20super(props)%3B%5Cn%20%20%20%20this.state%20%3D%20%7B%20message%3A%20%5C%22very%20handsome%5C%22%20%7D%3B%5Cn%20%20%7D%5Cn%20%20render()%20%7B%5Cn%20%20%20%20return%20(%5Cn%20%20%20%20%20%20%3Cdiv%20className%3D%5C%22box-react%5C%22%3E%5Cn%20%20%20%20%20%20%20%20Mr.Hope%20is%20%3Cspan%3E%7Bthis.state.message%7D%3C%2Fspan%3E%5Cn%20%20%20%20%20%20%3C%2Fdiv%3E%5Cn%20%20%20%20)%3B%5Cn%20%20%7D%5Cn%7D%5Cn%22%2C%22css%22%3A%22.box-react%20span%20%7B%5Cn%20%20color%3A%20red%3B%5Cn%7D%5Cn%22%7D"
>
<div>
<div>
<div><pre><code><span>export</span> <span>default</span> <span>class</span> <span>App</span> <span>extends</span> <span>React<span>.</span>Component</span> <span>{</span>
<span>constructor</span><span>(</span><span>props</span><span>)</span> <span>{</span>
<span>super</span><span>(</span>props<span>)</span><span>;</span>
<span>this</span><span>.</span>state <span>=</span> <span>{</span> <span>message</span><span>:</span> <span>"very handsome"</span> <span>}</span><span>;</span>
<span>}</span>
<span>render</span><span>(</span><span>)</span> <span>{</span>
<span>return</span> <span>(</span>
<span><</span>div className<span>=</span><span>"box-react"</span><span>></span>
Mr<span>.</span>Hope is <span><</span>span<span>></span><span>{</span><span>this</span><span>.</span>state<span>.</span>message<span>}</span><span><</span><span>/</span>span<span>></span>
<span><</span><span>/</span>div<span>></span>
<span>)</span><span>;</span>
<span>}</span>
<span>}</span>
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br><span>4</span><br><span>5</span><br><span>6</span><br><span>7</span><br><span>8</span><br><span>9</span><br><span>10</span><br><span>11</span><br><span>12</span><br><span>13</span><br></div></div><div><pre><code><span>.box-react span</span> <span>{</span>
<span>color</span><span>:</span> red<span>;</span>
<span>}</span>
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br></div></div>
</div>
</div>
</div>
<details><summary>Code</summary>
<div><pre><code>::: demo [react] A react demo
<span><span>```</span><span>js</span>
<span><span>export</span> <span>default</span> <span>class</span> <span>App</span> <span>extends</span> <span>React<span>.</span>Component</span> <span>{</span>
<span>constructor</span><span>(</span><span>props</span><span>)</span> <span>{</span>
<span>super</span><span>(</span>props<span>)</span><span>;</span>
<span>this</span><span>.</span>state <span>=</span> <span>{</span> <span>message</span><span>:</span> <span>"very handsome"</span> <span>}</span><span>;</span>
<span>}</span>
<span>render</span><span>(</span><span>)</span> <span>{</span>
<span>return</span> <span>(</span>
<span><</span>div className<span>=</span><span>"box-react"</span><span>></span>
Mr<span>.</span>Hope is <span><</span>span<span>></span><span>{</span><span>this</span><span>.</span>state<span>.</span>message<span>}</span><span><</span><span>/</span>span<span>></span>
<span><</span><span>/</span>div<span>></span>
<span>)</span><span>;</span>
<span>}</span>
<span>}</span></span>
<span>```</span></span>
<span><span>```</span><span>css</span>
<span><span>.box-react span</span> <span>{</span>
<span>color</span><span>:</span> red<span>;</span>
<span>}</span></span>
<span>```</span></span>
:::
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br><span>4</span><br><span>5</span><br><span>6</span><br><span>7</span><br><span>8</span><br><span>9</span><br><span>10</span><br><span>11</span><br><span>12</span><br><span>13</span><br><span>14</span><br><span>15</span><br><span>16</span><br><span>17</span><br><span>18</span><br><span>19</span><br><span>20</span><br><span>21</span><br><span>22</span><br><span>23</span><br><span>24</span><br><span>25</span><br></div></div></details>
<div
id="code-demo-4edf655c"
data-type="vue"
data-title="A%20vue%20demo"
data-code="%7B%22vue%22%3A%22%3Ctemplate%3E%5Cn%20%20%3Cdiv%20class%3D%5C%22box%5C%22%3E%5Cn%20%20%20%20Mr.Hope%20is%20%3Cspan%3E%7B%7B%20message%20%7D%7D%3C%2Fspan%3E%5Cn%20%20%3C%2Fdiv%3E%5Cn%3C%2Ftemplate%3E%5Cn%3Cscript%3E%5Cnexport%20default%20%7B%5Cn%20%20data%3A%20()%20%3D%3E%20(%7B%20message%3A%20%5C%22very%20handsome%5C%22%20%7D)%2C%5Cn%7D%3B%5Cn%3C%2Fscript%3E%5Cn%3Cstyle%3E%5Cn.box%20span%20%7B%5Cn%20%20color%3A%20red%3B%5Cn%7D%5Cn%3C%2Fstyle%3E%5Cn%22%7D"
>
<div>
<div>
<div><pre><code><span><span><span><</span>template</span><span>></span></span>
<span><span><span><</span>div</span> <span>class</span><span><span>=</span><span>"</span>box<span>"</span></span><span>></span></span>
Mr.Hope is <span><span><span><</span>span</span><span>></span></span>{{ message }}<span><span><span></</span>span</span><span>></span></span>
<span><span><span></</span>div</span><span>></span></span>
<span><span><span></</span>template</span><span>></span></span>
<span><span><span><</span>script</span><span>></span></span><span><span>
<span>export</span> <span>default</span> <span>{</span>
<span>data</span><span>:</span> <span>(</span><span>)</span> <span>=></span> <span>(</span><span>{</span> <span>message</span><span>:</span> <span>"very handsome"</span> <span>}</span><span>)</span><span>,</span>
<span>}</span><span>;</span>
</span></span><span><span><span></</span>script</span><span>></span></span>
<span><span><span><</span>style</span><span>></span></span><span><span>
<span>.box span</span> <span>{</span>
<span>color</span><span>:</span> red<span>;</span>
<span>}</span>
</span></span><span><span><span></</span>style</span><span>></span></span>
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br><span>4</span><br><span>5</span><br><span>6</span><br><span>7</span><br><span>8</span><br><span>9</span><br><span>10</span><br><span>11</span><br><span>12</span><br><span>13</span><br><span>14</span><br><span>15</span><br></div></div>
</div>
</div>
</div>
<details><summary>Code</summary>
<div><pre><code>::: demo [vue] A vue demo
<span><span>```</span><span>vue</span>
<span><template>
<div>
Mr.Hope is <span>{{ message }}</span>
</div>
</template>
<script>
export default {
data: () => ({ message: "very handsome" }),
};
</script>
<style>
.box span {
color: red;
}
</style></span>
<span>```</span></span>
:::
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br><span>4</span><br><span>5</span><br><span>6</span><br><span>7</span><br><span>8</span><br><span>9</span><br><span>10</span><br><span>11</span><br><span>12</span><br><span>13</span><br><span>14</span><br><span>15</span><br><span>16</span><br><span>17</span><br><span>18</span><br><span>19</span><br><span>20</span><br><span>21</span><br></div></div></details>
<div
id="code-demo-2b1f2266"
data-title="A%20normal%20demo"
data-code="%7B%22md%22%3A%22%23%20Title%5Cn%5Cnis%20very%20handsome.%5Cn%22%2C%22ts%22%3A%22const%20message%3A%20string%20%3D%20%5C%22Mr.Hope%5C%22%3B%5Cn%5Cndocument.querySelector(%5C%22h1%5C%22).innerHTML%20%3D%20message%3B%5Cn%22%2C%22scss%22%3A%22h1%20%7B%5Cn%20%20font-style%3A%20italic%3B%5Cn%5Cn%20%20%2B%20p%20%7B%5Cn%20%20%20%20color%3A%20red%3B%5Cn%20%20%7D%5Cn%7D%5Cn%22%7D"
>
<div>
<div>
<div><pre><code><span><span>#</span> Title</span>
is very handsome.
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br></div></div><div><pre><code><span>const</span> message<span>:</span> <span>string</span> <span>=</span> <span>"Mr.Hope"</span><span>;</span>
document<span>.</span><span>querySelector</span><span>(</span><span>"h1"</span><span>)</span><span>.</span>innerHTML <span>=</span> message<span>;</span>
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br></div></div><div><pre><code><span>h1 </span><span>{</span>
<span>font-style</span><span>:</span> italic<span>;</span>
<span>+ p </span><span>{</span>
<span>color</span><span>:</span> red<span>;</span>
<span>}</span>
<span>}</span>
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br><span>4</span><br><span>5</span><br><span>6</span><br><span>7</span><br></div></div>
</div>
</div>
</div>
<details><summary>Code</summary>
<div><pre><code>::: demo A normal demo
<span><span>```</span><span>md</span>
<span><span><span>#</span> Title</span>
is very handsome.</span>
<span>```</span></span>
<span><span>```</span><span>ts</span>
<span><span>const</span> message<span>:</span> <span>string</span> <span>=</span> <span>"Mr.Hope"</span><span>;</span>
document<span>.</span><span>querySelector</span><span>(</span><span>"h1"</span><span>)</span><span>.</span>innerHTML <span>=</span> message<span>;</span></span>
<span>```</span></span>
<span><span>```</span><span>scss</span>
<span><span>h1 </span><span>{</span>
<span>font-style</span><span>:</span> italic<span>;</span>
<span>+ p </span><span>{</span>
<span>color</span><span>:</span> red<span>;</span>
<span>}</span>
<span>}</span></span>
<span>```</span></span>
:::
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br><span>4</span><br><span>5</span><br><span>6</span><br><span>7</span><br><span>8</span><br><span>9</span><br><span>10</span><br><span>11</span><br><span>12</span><br><span>13</span><br><span>14</span><br><span>15</span><br><span>16</span><br><span>17</span><br><span>18</span><br><span>19</span><br><span>20</span><br><span>21</span><br><span>22</span><br><span>23</span><br><span>24</span><br><span>25</span><br></div></div></details>
<ul>
<li><a href="https://vuepress-theme-hope.github.io/v1/guide/markdown/demo/" target="_blank" rel="noopener noreferrer">View Detail</a></li>
</ul>
<h3 id="presentation"> Presentation</h3>
<i>Not supported content</i><details><summary>Code</summary>
<div><pre><code>@slidestart
<span><span>##</span> Slide 1</span>
A paragraph with some text and a <span>[<span>link</span>](<span>https://mrhope.site</span>)</span>
<span>---</span>
<span><span>##</span> Slide 2</span>
<span>-</span> Item 1
<span>-</span> Item 2
<span>---</span>
<span><span>##</span> Slide 3.1</span>
<span><span>```</span><span>js</span>
<span><span>const</span> a <span>=</span> <span>1</span><span>;</span></span>
<span>```</span></span>
--
<span><span>##</span> Slide 3.2</span>
$$
J(\theta_0,\theta_1) = \sum_{i=0}
$$
@slideend
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br><span>4</span><br><span>5</span><br><span>6</span><br><span>7</span><br><span>8</span><br><span>9</span><br><span>10</span><br><span>11</span><br><span>12</span><br><span>13</span><br><span>14</span><br><span>15</span><br><span>16</span><br><span>17</span><br><span>18</span><br><span>19</span><br><span>20</span><br><span>21</span><br><span>22</span><br><span>23</span><br><span>24</span><br><span>25</span><br><span>26</span><br><span>27</span><br><span>28</span><br><span>29</span><br><span>30</span><br></div></div></details>
<ul>
<li><a href="https://vuepress-theme-hope.github.io/v1/guide/markdown/presentation/" target="_blank" rel="noopener noreferrer">View Detail</a></li>
</ul>
<h2 id="other-syntax"> Other Syntax</h2>
<div><p>custom title</p>
<p>A custom information container</p>
</div>
<div><p>custom title</p>
<p>A custom tip container</p>
</div>
<div><p>custom title</p>
<p>A custom warning container</p>
</div>
<div><p>custom Title</p>
<p>A custom danger container</p>
</div>
<details><summary>custom title</summary>
<p>A custom details container</p>
</details>
<details><summary>Code</summary>
<div><pre><code>::: info custom title
A custom information container
:::
::: tip custom title
A custom tip container
:::
::: warning custom title
A custom warning container
:::
::: danger custom Title
A custom danger container
:::
::: details custom title
A custom details container
:::
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br><span>4</span><br><span>5</span><br><span>6</span><br><span>7</span><br><span>8</span><br><span>9</span><br><span>10</span><br><span>11</span><br><span>12</span><br><span>13</span><br><span>14</span><br><span>15</span><br><span>16</span><br><span>17</span><br><span>18</span><br><span>19</span><br><span>20</span><br><span>21</span><br><span>22</span><br><span>23</span><br><span>24</span><br><span>25</span><br><span>26</span><br><span>27</span><br><span>28</span><br><span>29</span><br></div></div></details>
<hr>
<section>
<ol>
<li id="footnote1"><p>This is footnote content </p>
</li>
</ol>
</section>
]]></content:encoded>
</item>
<item>
<title>Encryption article</title>
<link>https://jiangxj.top/vuepress/vuepress/en/guide/encrypt/</link>
<guid>https://jiangxj.top/vuepress/vuepress/en/guide/encrypt/</guid>
<source url="https://jiangxj.top/vuepress/vuepress/rss.xml">Encryption article</source>
<category>Guide</category>
<content:encoded><![CDATA[<h1 id="encryption-article"> Encryption article</h1>
<p>The actual article content.</p>
<p>Paragraph 1 text paragraph 1 text paragraph 1 text paragraph 1 text paragraph 1 text paragraph 1 text paragraph 1 text paragraph 1 text paragraph 1 text paragraph 1 text paragraph 1 text paragraph 1 text.</p>
<p>Paragraph 2 text paragraph 2 text paragraph 2 text paragraph 2 text paragraph 2 text paragraph 2 text paragraph 2 text paragraph 2 text paragraph 2 text paragraph 2 text paragraph 2 text paragraph 2 text paragraph 2 text paragraph 2 text.</p>
]]></content:encoded>
</item>
<item>
<title>Project home</title>
<link>https://jiangxj.top/vuepress/vuepress/en/home/</link>
<guid>https://jiangxj.top/vuepress/vuepress/en/home/</guid>
<source url="https://jiangxj.top/vuepress/vuepress/rss.xml">Project home</source>
<content:encoded><![CDATA[<p>This is an example of a normal homepage. You can place your main content here.</p>
<p>To use this layout, you need to set <code>home: true</code> in the page front matter.</p>
<p>For related descriptions of configuration items, please see <a href="https://vuepress-theme-hope.github.io/v1/guide/layout/home.html" target="_blank" rel="noopener noreferrer">Project HomePage Layout Config</a>.</p>
]]></content:encoded>
</item>
<item>
<title>Blog Home</title>
<link>https://jiangxj.top/vuepress/vuepress/en/</link>
<guid>https://jiangxj.top/vuepress/vuepress/en/</guid>
<source url="https://jiangxj.top/vuepress/vuepress/rss.xml">Blog Home</source>
</item>
<item>
<title>Slide page</title>
<link>https://jiangxj.top/vuepress/vuepress/en/slides/</link>
<guid>https://jiangxj.top/vuepress/vuepress/en/slides/</guid>
<source url="https://jiangxj.top/vuepress/vuepress/rss.xml">Slide page</source>
<content:encoded><![CDATA[
<i>Not supported content</i>]]></content:encoded>
<enclosure url="https://jiangxj.top/vuepress/vuepress/logo.svg" type="image/svg+xml"/>
</item>
<item>
<title>Guides</title>
<link>https://jiangxj.top/vuepress/vuepress/en/guide/</link>
<guid>https://jiangxj.top/vuepress/vuepress/en/guide/</guid>
<source url="https://jiangxj.top/vuepress/vuepress/rss.xml">Guides</source>
<category>Guide</category>
<content:encoded><![CDATA[<h1 id="guides"> Guides</h1>
<ul>
<li>
<p><a href="./page.html">Page Config</a></p>
</li>
<li>
<p><a href="./markdown.html">Markdown Enhance</a></p>
</li>
<li>
<p><a href="./disable.html">Function Disable</a></p>
</li>
<li>
<p><a href="./encrypt.html">Encryption Demo</a></p>
</li>
</ul>
]]></content:encoded>
</item>
<item>
<title>Custom Layout</title>
<link>https://jiangxj.top/vuepress/vuepress/en/layout/</link>
<guid>https://jiangxj.top/vuepress/vuepress/en/layout/</guid>
<source url="https://jiangxj.top/vuepress/vuepress/rss.xml">Custom Layout</source>
<content:encoded><![CDATA[<p>You can use slots with markdown and component support to custom page layout.</p>
<div><p>注意</p>
<p>This is just a demo, you should add styles according to your own needs.</p>
</div>
<template #page-top><p>Page top content</p>
</template><template #page-bottom><p>Page bottom content</p>
</template><template #content-top><p>Content top content</p>
</template><template #content-bottom><p>Content bottom content</p>
</template><template #navbar-start><p>Navbar start content</p>
</template><template #navbar-center><p>Navbar center content</p>
</template><template #navbar-end><p>Navbar end content</p>
</template><template #sidebar-top><p>Sidebar top content</p>
</template><template #sidebar-center><p>Sidebar center content</p>
</template><template #sidebar-bottom><p>Sidebar bottom content</p>
</template><p>For details, see <a href="https://vuepress-theme-hope.github.io/v1/guide/layout/custom.html" target="_blank" rel="noopener noreferrer">Custom layout</a>.</p>
]]></content:encoded>
</item>
<item>
<title>VuePress 默认主题设置</title>
<link>https://jiangxj.top/vuepress/vuepress/guide/configuration/</link>
<guid>https://jiangxj.top/vuepress/vuepress/guide/configuration/</guid>
<source url="https://jiangxj.top/vuepress/vuepress/rss.xml">VuePress 默认主题设置</source>
<description>使用vuepress构建文档博客网站的默认主题配置教程,包括navbar,sidebar,多栏分组等。</description>
<category>guide</category>
<content:encoded><![CDATA[<h2 id="frontmatter"> frontmatter</h2>
<p>必须在每个 .md 文件开头,通常以 yaml 格式表示。</p>
<div><pre><code><span>---</span>
<span>title</span><span>:</span> hello vuepress
<span>lang</span><span>:</span> zh<span>-</span>CN
<span>sidebarDepth</span><span>:</span> <span>2</span>
<span>navbar</span><span>:</span> <span>false</span>
<span>sidebar</span><span>:</span> <span>false</span>
<span>search</span><span>:</span> <span>false</span>
<span>tags</span><span>:</span>
<span>-</span> configuration
<span>-</span> theme
<span>-</span> indexing
<span>prev</span><span>:</span> ./some<span>-</span>other<span>-</span>page
<span>next</span><span>:</span> <span>false</span>
<span>pageClass</span><span>:</span> custom<span>-</span>page<span>-</span>class
<span>layout</span><span>:</span> SpecialLayout
<span>---</span>
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br><span>4</span><br><span>5</span><br><span>6</span><br><span>7</span><br><span>8</span><br><span>9</span><br><span>10</span><br><span>11</span><br><span>12</span><br><span>13</span><br><span>14</span><br><span>15</span><br><span>16</span><br><span>17</span><br></div></div><ul>
<li>title 会自动作为 sidebar 的一级链接标题(优先级低于在 config.js 中配置)。</li>
<li>sidebarDepth 见下文内嵌链接</li>
<li>navbar 用于在本页面关闭导航栏</li>
<li>sidebar 用于在本页面关闭侧边栏</li>
<li>search 用于在本页面关闭搜索框</li>
<li>tag 用于搜索(内置的搜索只搜索文章的 h2, h3 和 frontmatter 中设置的 tags)</li>
<li>prev 文章底部,上一篇文章的链接</li>
<li>next 文章底部,下一篇文章的链接</li>
<li>pageClass 为这一页自定义一个 class,用于在 .vuepress/styles/index.styl 添加自定义 css</li>
<li>layout 通常每个 .md 文件内容都是在容器 <code><div class="page"></code> 中渲染的,包含侧边栏,上一篇,下一篇链接等。使用这个选项,可以设置使用特定的 vue 组件渲染该 .md 文件。(.vuepress/components/SpecialLayout.vue)</li>
</ul>
<h2 id="navbar"> navbar</h2>
<p>外部链接自动获得两个属性 target="_blank" & rel="noopener noreferrer"。你也可以自定义。</p>
<ul>
<li>text 是显示的标题</li>
<li>ariaLabel 不知道有什么用</li>
<li>link 当然就是链接啦</li>
<li>items 用于套娃,最多两层(第一层有下拉菜单,第二层之间有分割线)。</li>
</ul>
<div><div><br><br><br><br><br><br><div> </div><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br></div><pre><code><span>themeConfig</span><span>:</span> <span>{</span>
<span>logo</span><span>:</span> <span>'/assets/img/ChernoLogo.png'</span><span>,</span> <span>// 左上角的图标</span>
<span>// 导航栏</span>
<span>nav</span><span>:</span> <span>[</span>
<span>{</span> <span>text</span><span>:</span> <span>'Home'</span><span>,</span> <span>link</span><span>:</span> <span>'/'</span> <span>}</span><span>,</span>
<span>{</span> <span>text</span><span>:</span> <span>'Guide'</span><span>,</span> <span>link</span><span>:</span> <span>'/guide/'</span> <span>}</span><span>,</span>
<span>{</span> <span>text</span><span>:</span> <span>'External'</span><span>,</span> <span>link</span><span>:</span> <span>'https://google.com'</span> <span>,</span> <span>target</span><span>:</span><span>'_self'</span><span>,</span> <span>rel</span><span>:</span><span>false</span> <span>}</span><span>,</span>
<span>{</span>
<span>text</span><span>:</span> <span>'Languages'</span><span>,</span>
<span>ariaLabel</span><span>:</span> <span>'Language Menu'</span><span>,</span>
<span>items</span><span>:</span> <span>[</span> <span>// 还可以继续套娃</span>
<span>{</span>
<span>text</span><span>:</span> <span>'Chinese'</span><span>,</span>
<span>ariaLabel</span><span>:</span> <span>'Chinese Menu'</span><span>,</span> <span>// 没啥用啊,这属性</span>
<span>items</span><span>:</span> <span>[</span>
<span>{</span> <span>text</span><span>:</span> <span>'ah'</span><span>,</span> <span>link</span><span>:</span> <span>'https://google.com'</span> <span>}</span><span>,</span>
<span>{</span> <span>text</span><span>:</span> <span>'nj'</span><span>,</span> <span>link</span><span>:</span> <span>'https://google.com'</span> <span>}</span><span>,</span>
<span>]</span>
<span>}</span><span>,</span>
<span>{</span>
<span>text</span><span>:</span> <span>'English'</span><span>,</span>
<span>ariaLabel</span><span>:</span> <span>'English Menu'</span><span>,</span> <span>// 没啥用啊,这属性</span>
<span>items</span><span>:</span> <span>[</span>
<span>{</span> <span>text</span><span>:</span> <span>'sf'</span><span>,</span> <span>link</span><span>:</span> <span>'https://google.com'</span> <span>}</span><span>,</span>
<span>{</span> <span>text</span><span>:</span> <span>'ny'</span><span>,</span> <span>link</span><span>:</span> <span>'https://google.com'</span> <span>}</span><span>,</span>
<span>]</span>
<span>}</span><span>,</span>
<span>]</span>
<span>}</span>
<span>]</span><span>,</span>
</code></pre><div><span>1</span><br><span>2</span><br><span>3</span><br><span>4</span><br><span>5</span><br><span>6</span><br><span>7</span><br><span>8</span><br><span>9</span><br><span>10</span><br><span>11</span><br><span>12</span><br><span>13</span><br><span>14</span><br><span>15</span><br><span>16</span><br><span>17</span><br><span>18</span><br><span>19</span><br><span>20</span><br><span>21</span><br><span>22</span><br><span>23</span><br><span>24</span><br><span>25</span><br><span>26</span><br><span>27</span><br><span>28</span><br><span>29</span><br><span>30</span><br><span>31</span><br></div></div><h2 id="sidebar"> sidebar</h2>
<div><pre><code><span>// .vuepress/config.js</span>
module<span>.</span>exports <span>=</span> <span>{</span>
<span>themeConfig</span><span>:</span> <span>{</span>
<span>sidebar</span><span>:</span> <span>[</span>
<span>'/'</span><span>,</span>
<span>'/page-a'</span><span>,</span>
<span>[</span><span>'/page-b'</span><span>,</span> <span>'显示指定链接标题'</span><span>]</span>
<span>]</span>
<span>}</span>
<span>}</span>
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br><span>4</span><br><span>5</span><br><span>6</span><br><span>7</span><br><span>8</span><br><span>9</span><br><span>10</span><br></div></div><p>指定路径时,可以忽略.md后缀,以'path/'结尾的路径,对应的内容为 path/README.md。如果需要显示指定标题,则如例子中的第三行。</p>
<h3 id="内嵌链接"> 内嵌链接</h3>
<p>默认抓取 Markdown 文档的所有二级标题作为当前链接的子链接。对应的设置为 themeConfig.sidebarDepth = 1。</p>
<p>sidebarDepth = 0 表示没有子链接。
sidebarDepth = 2 会抓取h2,h3作为子链接。最大层次就是2。效果见本文。</p>
<p>这个设置除了在配置中改,也可以在 .md 的 frontmatter 部分改。</p>
<div><pre><code><span>---</span>
<span>sidebarDepth</span><span>:</span> <span>0</span>
<span>---</span>
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br></div></div><h3 id="展开所有子链接"> 展开所有子链接</h3>
<div><pre><code><span>// .vuepress/config.js</span>
module<span>.</span>exports <span>=</span> <span>{</span>
<span>themeConfig</span><span>:</span> <span>{</span>
<span>displayAllHeaders</span><span>:</span> <span>true</span> <span>// Default: false</span>
<span>}</span>
<span>}</span>
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br><span>4</span><br><span>5</span><br><span>6</span><br></div></div><h3 id="导航栏分组"> 导航栏分组</h3>
<p>顾名思义</p>
<div><pre><code><span>sidebar</span><span>:</span> <span>[</span>
<span>{</span>
<span>title</span><span>:</span> <span>'Group1'</span><span>,</span> <span>// 必须要有分组名</span>
<span>collapsable</span><span>:</span> <span>false</span><span>,</span> <span>// 默认是折叠,设为 true 表示直接展开</span>
<span>children</span><span>:</span> <span>[</span><span>'/blog/'</span><span>,</span> <span>'/blog/test'</span><span>]</span> <span>// 有多个分组成员</span>
<span>}</span><span>,</span>
<span>{</span> <span>// 只有一个分组成员</span>
<span>title</span><span>:</span> <span>'Group2'</span><span>,</span>
<span>path</span><span>:</span> <span>'/guide/'</span><span>,</span>
<span>}</span><span>,</span>
<span>'/'</span><span>,</span>
<span>]</span>
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br><span>4</span><br><span>5</span><br><span>6</span><br><span>7</span><br><span>8</span><br><span>9</span><br><span>10</span><br><span>11</span><br><span>12</span><br></div></div><h3 id="多重侧边栏"> 多重侧边栏</h3>
<p>不同的分区可以对应不同的侧边导航栏。<br>
<strong>fallback 必须放在最后!</strong><br>
auto 的意思是这一个 md 自动生成一个它独占的侧边栏。</p>
<div><div><br><br><br><br><br><br><br><br><br><br><br><br><br><div> </div><br><br><br><br><br><br><br><br><br></div><pre><code><span>sidebar</span><span>:</span> <span>{</span>
<span>'/foo/'</span><span>:</span> <span>[</span>
<span>''</span><span>,</span> <span>/* /foo/ */</span>
<span>'one'</span><span>,</span> <span>/* /foo/one.html */</span>
<span>'two'</span> <span>/* /foo/two.html */</span>
<span>]</span><span>,</span>
<span>'/bar/'</span><span>:</span> <span>[</span>
<span>''</span><span>,</span> <span>/* /bar/ */</span>
<span>'three'</span><span>,</span> <span>/* /bar/three.html */</span>
<span>'four'</span> <span>/* /bar/four.html */</span>
<span>]</span><span>,</span>
<span>'/baz/'</span><span>:</span> <span>'auto'</span><span>,</span> <span>/* automatically generate single-page sidebars */</span>
<span>// fallback</span>
<span>'/'</span><span>:</span> <span>[</span>
<span>''</span><span>,</span> <span>/* / */</span>
<span>'contact'</span><span>,</span> <span>/* /contact.html */</span>
<span>'about'</span> <span>/* /about.html */</span>
<span>]</span>
<span>}</span>
</code></pre><div><span>1</span><br><span>2</span><br><span>3</span><br><span>4</span><br><span>5</span><br><span>6</span><br><span>7</span><br><span>8</span><br><span>9</span><br><span>10</span><br><span>11</span><br><span>12</span><br><span>13</span><br><span>14</span><br><span>15</span><br><span>16</span><br><span>17</span><br><span>18</span><br><span>19</span><br><span>20</span><br><span>21</span><br><span>22</span><br></div></div><h2 id="code-groups"> code groups</h2>
<p>CodeGroupItem之间需要空一行</p>
<div><pre><code><span><span><span><</span>CodeGroup</span><span>></span></span>
<span><span><span><</span>CodeGroupItem</span> <span>title</span><span><span>=</span><span>"</span>YARN<span>"</span></span><span>></span></span>
\`\`\`bash
yarn create vuepress-site [optionalDirectoryName]
\`\`\`
<span><span><span></</span>CodeGroupItem</span><span>></span></span>
<span><span><span><</span>CodeGroupItem</span> <span>title</span><span><span>=</span><span>"</span>NPM<span>"</span></span><span>></span></span>
\`\`\`bash
npx create-vuepress-site [optionalDirectoryName]
\`\`\`
<span><span><span></</span>CodeGroupItem</span><span>></span></span>
<span><span><span></</span>CodeGroup</span><span>></span></span>
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br><span>4</span><br><span>5</span><br><span>6</span><br><span>7</span><br><span>8</span><br><span>9</span><br><span>10</span><br><span>11</span><br><span>12</span><br><span>13</span><br></div></div><p>效果如下</p>
<CodeGroup>
<CodeGroupItem title="YARN">
<div><pre><code><span>yarn</span> create vuepress-site <span>[</span>optionalDirectoryName<span>]</span>
</code></pre>
<div><span>1</span><br></div></div></CodeGroupItem>
<CodeGroupItem title="NPM">
<div><pre><code>npx create-vuepress-site <span>[</span>optionalDirectoryName<span>]</span>
</code></pre>
<div><span>1</span><br></div></div></CodeGroupItem>
</CodeGroup>]]></content:encoded>
</item>
<item>
<title>组件禁用</title>
<link>https://jiangxj.top/vuepress/vuepress/guide/disable/</link>
<guid>https://jiangxj.top/vuepress/vuepress/guide/disable/</guid>
<source url="https://jiangxj.top/vuepress/vuepress/rss.xml">组件禁用</source>
<description>&lt;p&gt;你可以通过设置页面的 Frontmatter,在页面禁用一些功能。&lt;/p&gt;
</description>
<category>使用指南</category>
<content:encoded><![CDATA[<p>你可以通过设置页面的 Frontmatter,在页面禁用一些功能。</p>
<p>本页面应当禁用了:</p>
<ul>
<li>导航栏</li>
<li>侧边栏</li>
<li>路径导航</li>
<li>页面信息</li>
<li>贡献者</li>
<li>编辑此页链接</li>
<li>更新时间</li>
<li>上一篇/下一篇 链接</li>
<li>评论</li>
<li>页脚</li>
<li>返回顶部按钮</li>
</ul>
]]></content:encoded>
</item>
<item>
<title>密码加密的文章</title>
<link>https://jiangxj.top/vuepress/vuepress/guide/encrypt/</link>
<guid>https://jiangxj.top/vuepress/vuepress/guide/encrypt/</guid>
<source url="https://jiangxj.top/vuepress/vuepress/rss.xml">密码加密的文章</source>
<category>使用指南</category>
<content:encoded><![CDATA[<h1 id="密码加密的文章"> 密码加密的文章</h1>
<p>实际的文章内容。</p>
<p>段落 1 文字段落 1 文字段落 1 文字段落 1 文字段落 1 文字段落 1 文字段落 1 文字段落 1 文字段落 1 文字段落 1 文字段落 1 文字段落 1 文字。</p>
<p>段落 2 文字段落 2 文字段落 2 文字段落 2 文字段落 2 文字段落 2 文字段落 2 文字段落 2 文字段落 2 文字段落 2 文字段落 2 文字段落 2 文字段落 2 文字段落 2 文字。</p>
]]></content:encoded>
</item>
<item>
<title>Markdown 增强</title>
<link>https://jiangxj.top/vuepress/vuepress/guide/markdown/</link>
<guid>https://jiangxj.top/vuepress/vuepress/guide/markdown/</guid>
<source url="https://jiangxj.top/vuepress/vuepress/rss.xml">Markdown 增强</source>
<description>关于Markdown的基础使用教程介绍。</description>
<category>使用指南</category>
<content:encoded><![CDATA[<p><code>vuepress-theme-hope</code> 通过内置 <a href="https://vuepress-theme-hope.github.io/md-enhance" target="_blank" rel="noopener noreferrer">md-enhance</a>,在 Markdown 中启用了更多的语法与新功能。</p>
<h2 id="一键启用"> 一键启用</h2>
<p>你可以设置 <code>themeconfig.mdEnhance.enableAll</code> 启用 <a href="https://vuepress-theme-hope.github.io/md-enhance" target="_blank" rel="noopener noreferrer">md-enhance</a> 插件的所有功能。</p>
<div><div><br><br><div> </div><div> </div><div> </div><br><br><br></div><pre><code>module<span>.</span>exports <span>=</span> <span>{</span>
<span>themeConfig</span><span>:</span> <span>{</span>
<span>mdEnhance</span><span>:</span> <span>{</span>
<span>enableAll</span><span>:</span> <span>true</span><span>,</span>
<span>}</span><span>,</span>
<span>}</span><span>,</span>
<span>}</span><span>;</span>
</code></pre><div><span>1</span><br><span>2</span><br><span>3</span><br><span>4</span><br><span>5</span><br><span>6</span><br><span>7</span><br></div></div><h2 id="新增的更多语法"> 新增的更多语法</h2>
<h3 id="上下角标"> 上下角标</h3>
<p>19<sup>th</sup> H<sub>2</sub>O</p>
<details><summary>代码</summary>
<div><pre><code>19^th^ H<span><span>~</span><span>2</span><span>~</span></span>O
</code></pre>
<div><span>1</span><br></div></div></details>
<ul>
<li><a href="https://vuepress-theme-hope.github.io/zh/guide/markdown/sup-sub/" target="_blank" rel="noopener noreferrer">点击查看</a></li>
</ul>
<h3 id="自定义对齐"> 自定义对齐</h3>
<p>::: center</p>
<p>我是居中的</p>
<p>:::</p>
<p>::: right</p>
<p>我在右对齐</p>
<p>:::</p>
<details><summary>代码</summary>
<div><pre><code>::: center
我是居中的
:::
::: right
我在右对齐
:::
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br><span>4</span><br><span>5</span><br><span>6</span><br><span>7</span><br><span>8</span><br><span>9</span><br><span>10</span><br><span>11</span><br></div></div></details>
<ul>
<li><a href="https://vuepress-theme-hope.github.io/zh/guide/markdown/align/" target="_blank" rel="noopener noreferrer">点击查看</a></li>
</ul>
<h3 id="脚注"> 脚注</h3>
<p>此文字有脚注<sup></sup>.</p>
<details><summary>代码</summary>
<div><pre><code>此文字有脚注[^first].
<span><span>[</span><span>^first</span><span>]</span><span>:</span> 这是脚注内容</span>
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br></div></div></details>
<ul>
<li><a href="https://vuepress-theme-hope.github.io/zh/guide/markdown/footnote/" target="_blank" rel="noopener noreferrer">点击查看</a></li>
</ul>
<h3 id="标记"> 标记</h3>
<p>你可以标记 ==重要的内容== 。</p>
<details><summary>代码</summary>
<div><pre><code>你可以标记 ==重要的内容== 。
</code></pre>
<div><span>1</span><br></div></div></details>
<ul>
<li><a href="https://vuepress-theme-hope.github.io/zh/guide/markdown/mark/" target="_blank" rel="noopener noreferrer">点击查看</a></li>
</ul>
<h3 id="任务列表"> 任务列表</h3>
<ul>
<li>[x] 计划 1</li>
<li>[ ] 计划 2</li>
</ul>
<details><summary>Code</summary>
<div><pre><code><span>-</span> [x] 计划 1
<span>-</span> [ ] 计划 2
</code></pre>
<div><span>1</span><br><span>2</span><br></div></div></details>
<ul>
<li><a href="https://vuepress-theme-hope.github.io/guide/markdown/tasklist/" target="_blank" rel="noopener noreferrer">点击查看</a></li>
</ul>
<h3 id="流程图"> 流程图</h3>
<i>Not supported content</i><details><summary>代码</summary>
<div><pre><code><span><span>```</span><span>flow</span>
<span>cond=>condition: Process?
process=>operation: Process
e=>end: End
cond(yes)->process->e
cond(no)->e</span>
<span>```</span></span>
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br><span>4</span><br><span>5</span><br><span>6</span><br><span>7</span><br><span>8</span><br></div></div></details>
<ul>
<li><a href="https://vuepress-theme-hope.github.io/zh/guide/markdown/flowchart/" target="_blank" rel="noopener noreferrer">点击查看</a></li>
</ul>
<h2 id="mermaid"> Mermaid</h2>
<Mermaid id="mermaid-64a57026" data-code="sequenceDiagram%0A%20%20%20%20Alice%20-%3E%3E%20Bob%3A%20Hello%20Bob%2C%20how%20are%20you%3F%0A%20%20%20%20Bob--%3E%3EJohn%3A%20How%20about%20you%20John%3F%0A%20%20%20%20Bob--x%20Alice%3A%20I%20am%20good%20thanks!%0A%20%20%20%20Bob-x%20John%3A%20I%20am%20good%20thanks!%0A%20%20%20%20Note%20right%20of%20John%3A%20Bob%20thinks%20a%20long%3Cbr%2F%3Elong%20time%2C%20so%20long%3Cbr%2F%3Ethat%20the%20text%20does%3Cbr%2F%3Enot%20fit%20on%20a%20row.%0A%0A%20%20%20%20Bob--%3EAlice%3A%20Checking%20with%20John...%0A%20%20%20%20Alice-%3EJohn%3A%20Yes...%20John%2C%20how%20are%20you%3F%0A"></Mermaid><details><summary>代码</summary>
<div><pre><code>```sequence
Alice ->> Bob: Hello Bob, how are you?
Bob-->>John: How about you John?
Bob--x Alice: I am good thanks!
Bob-x John: I am good thanks!
Note right of John: Bob thinks a long<span><span><span><</span>br</span><span>/></span></span>long time, so long<span><span><span><</span>br</span><span>/></span></span>that the text does<span><span><span><</span>br</span><span>/></span></span>not fit on a row.
Bob-->Alice: Checking with John...
Alice->John: Yes... John, how are you?
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br><span>4</span><br><span>5</span><br><span>6</span><br><span>7</span><br><span>8</span><br><span>9</span><br></div></div><div><pre><code>
</code></pre>
<div><span>1</span><br></div></div></details>
<ul>
<li><a href="https://vuepress-theme-hope.github.io/zh/guide/markdown/mermaid/" target="_blank" rel="noopener noreferrer">点击查看</a></li>
</ul>
<h3 id="tex-语法"> Tex 语法</h3>
<p class='katex-block'><span><span><span><i>Not supported content</i></span><span aria-hidden="true"><span><span style="height:2.4em;vertical-align:-0.95em;"></span><span><span></span><span><span><span><span style="height:1.3714em;"><span style="top:-2.314em;"><span style="height:3em;"></span><span><span style="margin-right:0.05556em;">∂</span><span><span style="margin-right:0.03588em;">ω</span><span><span><span><span style="height:0.5904em;"><span style="top:-2.989em;margin-right:0.05em;"><span style="height:2.7em;"></span><span><span style="margin-right:0.02778em;">r</span></span></span></span></span></span></span></span></span></span><span style="top:-3.23em;"><span style="height:3em;"></span><span style="border-bottom-width:0.04em;"></span></span><span style="top:-3.677em;"><span style="height:3em;"></span><span><span><span style="margin-right:0.05556em;">∂</span><span><span><span><span style="height:0.6644em;"><span style="top:-3.063em;margin-right:0.05em;"><span style="height:2.7em;"></span><span><span style="margin-right:0.02778em;">r</span></span></span></span></span></span></span></span></span></span></span><span></span></span><span><span style="height:0.686em;"><span></span></span></span></span></span><span></span></span><span style="margin-right:0.1667em;"></span><span><span style="top:0em;"><span>(</span></span><span><span></span><span><span><span><span style="height:1.3414em;"><span style="top:-2.314em;"><span style="height:3em;"></span><span><span style="margin-right:0.03588em;">ω</span></span></span><span style="top:-3.23em;"><span style="height:3em;"></span><span style="border-bottom-width:0.04em;"></span></span><span style="top:-3.677em;"><span style="height:3em;"></span><span><span><span style="margin-right:0.03588em;">y</span><span><span><span><span style="height:0.6644em;"><span style="top:-3.063em;margin-right:0.05em;"><span style="height:2.7em;"></span><span><span><span style="margin-right:0.03588em;">ω</span></span></span></span></span></span></span></span></span></span></span></span><span></span></span><span><span style="height:0.686em;"><span></span></span></span></span></span><span></span></span><span style="top:0em;"><span>)</span></span></span><span style="margin-right:0.2778em;"></span><span>=</span><span style="margin-right:0.2778em;"></span></span><span><span style="height:3.0277em;vertical-align:-1.2777em;"></span><span><span style="top:0em;"><span>(</span></span><span><span></span><span><span><span><span style="height:1.3414em;"><span style="top:-2.314em;"><span style="height:3em;"></span><span><span style="margin-right:0.03588em;">ω</span></span></span><span style="top:-3.23em;"><span style="height:3em;"></span><span style="border-bottom-width:0.04em;"></span></span><span style="top:-3.677em;"><span style="height:3em;"></span><span><span><span style="margin-right:0.03588em;">y</span><span><span><span><span style="height:0.6644em;"><span style="top:-3.063em;margin-right:0.05em;"><span style="height:2.7em;"></span><span><span><span style="margin-right:0.03588em;">ω</span></span></span></span></span></span></span></span></span></span></span></span><span></span></span><span><span style="height:0.686em;"><span></span></span></span></span></span><span></span></span><span style="top:0em;"><span>)</span></span></span><span style="margin-right:0.1667em;"></span><span><span style="top:0em;"><span>{</span></span><span>(</span><span>lo<span style="margin-right:0.01389em;">g</span></span><span style="margin-right:0.1667em;"></span><span style="margin-right:0.03588em;">y</span><span><span>)</span><span><span><span><span style="height:0.7144em;"><span style="top:-3.113em;margin-right:0.05em;"><span style="height:2.7em;"></span><span><span style="margin-right:0.02778em;">r</span></span></span></span></span></span></span></span><span style="margin-right:0.2222em;"></span><span>+</span><span style="margin-right:0.2222em;"></span><span><span><span><span style="height:1.6514em;"><span style="top:-1.8723em;margin-left:0em;"><span style="height:3.05em;"></span><span><span><span>i</span><span>=</span><span>1</span></span></span></span><span style="top:-3.05em;"><span style="height:3.05em;"></span><span><span>∑</span></span></span><span style="top:-4.3em;margin-left:0em;"><span style="height:3.05em;"></span><span><span style="margin-right:0.02778em;">r</span></span></span></span><span></span></span><span><span style="height:1.2777em;"><span></span></span></span></span></span><span style="margin-right:0.1667em;"></span><span><span></span><span><span><span><span style="height:1.5017em;"><span style="top:-2.314em;"><span style="height:3em;"></span><span><span><span style="margin-right:0.03588em;">ω</span><span><span><span><span style="height:0.7507em;"><span style="top:-2.989em;margin-right:0.05em;"><span style="height:2.7em;"></span><span><span>i</span></span></span></span></span></span></span></span></span></span><span style="top:-3.23em;"><span style="height:3em;"></span><span style="border-bottom-width:0.04em;"></span></span><span style="top:-3.677em;"><span style="height:3em;"></span><span><span>(</span><span>−</span><span>1</span><span><span>)</span><span><span><span><span style="height:0.8247em;"><span style="top:-3.063em;margin-right:0.05em;"><span style="height:2.7em;"></span><span><span>i</span></span></span></span></span></span></span></span><span style="margin-right:0.02778em;">r</span><span style="margin-right:0.1667em;"></span><span>⋯</span><span style="margin-right:0.1667em;"></span><span>(</span><span style="margin-right:0.02778em;">r</span><span style="margin-right:0.2222em;"></span><span>−</span><span style="margin-right:0.2222em;"></span><span>i</span><span style="margin-right:0.2222em;"></span><span>+</span><span style="margin-right:0.2222em;"></span><span>1</span><span>)</span><span>(</span><span>lo<span style="margin-right:0.01389em;">g</span></span><span style="margin-right:0.1667em;"></span><span style="margin-right:0.03588em;">y</span><span><span>)</span><span><span><span><span style="height:0.8247em;"><span style="top:-3.063em;margin-right:0.05em;"><span style="height:2.7em;"></span><span><span><span style="margin-right:0.02778em;">r</span><span>−</span><span>i</span></span></span></span></span></span></span></span></span></span></span></span><span></span></span><span><span style="height:0.686em;"><span></span></span></span></span></span><span></span></span><span style="top:0em;"><span>}</span></span></span></span></span></span></span></p>
<details><summary>代码</summary>
<div><pre><code>$$
\frac {\partial^r} {\partial \omega^r} \left(\frac {y^{\omega}} {\omega}\right)
= \left(\frac {y^{\omega}} {\omega}\right) \left\{(\log y)^r + \sum_{i=1}^r \frac {(-1)^i r \cdots (r-i+1) (\log y)^{r-i}} {\omega^i} \right\}
$$
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br><span>4</span><br></div></div></details>
<ul>
<li><a href="https://vuepress-theme-hope.github.io/zh/guide/markdown/tex/" target="_blank" rel="noopener noreferrer">点击查看</a></li>
</ul>
<h3 id="代码案例"> 代码案例</h3>
<div
id="code-demo-5ac6bc9f"
data-title="%E4%B8%80%E4%B8%AA%E6%99%AE%E9%80%9A%20Demo"
data-code="%7B%22html%22%3A%22%3Ch1%3EMr.Hope%3C%2Fh1%3E%5Cn%3Cp%3E%3Cspan%20id%3D%5C%22very%5C%22%3E%E5%8D%81%E5%88%86%3C%2Fspan%3E%20%E5%B8%85%3C%2Fp%3E%5Cn%22%2C%22js%22%3A%22document.querySelector(%5C%22%23very%5C%22).addEventListener(%5C%22click%5C%22%2C%20()%20%3D%3E%20%7B%5Cn%20%20alert(%5C%22%E5%8D%81%E5%88%86%E5%B8%85%5C%22)%3B%5Cn%7D)%3B%5Cn%22%2C%22css%22%3A%22span%20%7B%5Cn%20%20color%3A%20red%3B%5Cn%7D%5Cn%22%7D"
>
<div>
<div>
<div><pre><code><span><span><span><</span>h1</span><span>></span></span>Mr.Hope<span><span><span></</span>h1</span><span>></span></span>
<span><span><span><</span>p</span><span>></span></span><span><span><span><</span>span</span> <span>id</span><span><span>=</span><span>"</span>very<span>"</span></span><span>></span></span>十分<span><span><span></</span>span</span><span>></span></span> 帅<span><span><span></</span>p</span><span>></span></span>
</code></pre>
<div><span>1</span><br><span>2</span><br></div></div><div><pre><code>document<span>.</span><span>querySelector</span><span>(</span><span>"#very"</span><span>)</span><span>.</span><span>addEventListener</span><span>(</span><span>"click"</span><span>,</span> <span>(</span><span>)</span> <span>=></span> <span>{</span>
<span>alert</span><span>(</span><span>"十分帅"</span><span>)</span><span>;</span>
<span>}</span><span>)</span><span>;</span>
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br></div></div><div><pre><code><span>span</span> <span>{</span>
<span>color</span><span>:</span> red<span>;</span>
<span>}</span>
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br></div></div>
</div>
</div>
</div>
<details><summary>代码</summary>
<div><pre><code>::: demo 一个普通 Demo
<span><span>```</span><span>html</span>
<span><span><span><span><</span>h1</span><span>></span></span>Mr.Hope<span><span><span></</span>h1</span><span>></span></span>
<span><span><span><</span>p</span><span>></span></span><span><span><span><</span>span</span> <span>id</span><span><span>=</span><span>"</span>very<span>"</span></span><span>></span></span>十分<span><span><span></</span>span</span><span>></span></span> 帅<span><span><span></</span>p</span><span>></span></span></span>
<span>```</span></span>
<span><span>```</span><span>js</span>
<span>document<span>.</span><span>querySelector</span><span>(</span><span>"#very"</span><span>)</span><span>.</span><span>addEventListener</span><span>(</span><span>"click"</span><span>,</span> <span>(</span><span>)</span> <span>=></span> <span>{</span>
<span>alert</span><span>(</span><span>"十分帅"</span><span>)</span><span>;</span>
<span>}</span><span>)</span><span>;</span></span>
<span>```</span></span>
<span><span>```</span><span>css</span>
<span><span>span</span> <span>{</span>
<span>color</span><span>:</span> red<span>;</span>
<span>}</span></span>
<span>```</span></span>
:::
</code></pre>
<div><span>1</span><br><span>2</span><br><span>3</span><br><span>4</span><br><span>5</span><br><span>6</span><br><span>7</span><br><span>8</span><br><span>9</span><br><span>10</span><br><span>11</span><br><span>12</span><br><span>13</span><br><span>14</span><br><span>15</span><br><span>16</span><br><span>17</span><br><span>18</span><br><span>19</span><br><span>20</span><br></div></div></details>
<div
id="code-demo-693e1878"
data-type="react"
data-title="%E4%B8%80%E4%B8%AA%20React%20Demo"
data-code="%7B%22js%22%3A%22export%20default%20class%20App%20extends%20React.Component%20%7B%5Cn%20%20constructor(props)%20%7B%5Cn%20%20%20%20super(props)%3B%5Cn%20%20%20%20this.state%20%3D%20%7B%20message%3A%20%5C%22%E5%8D%81%E5%88%86%E5%B8%85%5C%22%20%7D%3B%5Cn%20%20%7D%5Cn%20%20render()%20%7B%5Cn%20%20%20%20return%20(%5Cn%20%20%20%20%20%20%3Cdiv%20className%3D%5C%22box-react%5C%22%3E%5Cn%20%20%20%20%20%20%20%20Mr.Hope%20%3Cspan%3E%7Bthis.state.message%7D%3C%2Fspan%3E%5Cn%20%20%20%20%20%20%3C%2Fdiv%3E%5Cn%20%20%20%20)%3B%5Cn%20%20%7D%5Cn%7D%5Cn%22%2C%22css%22%3A%22.box-react%20span%20%7B%5Cn%20%20color%3A%20red%3B%5Cn%7D%5Cn%22%7D"
>
<div>
<div>
<div><pre><code><span>export</span> <span>default</span> <span>class</span> <span>App</span> <span>extends</span> <span>React<span>.</span>Component</span> <span>{</span>
<span>constructor</span><span>(</span><span>props</span><span>)</span> <span>{</span>