-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
967 lines (578 loc) · 75.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
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
<!DOCTYPE html>
<html lang="zh-hans">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 7.3.0">
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
<link rel="mask-icon" href="/images/logo.svg" color="#222">
<link rel="stylesheet" href="/css/main.css">
<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">
<script id="hexo-configurations">
var NexT = window.NexT || {};
var CONFIG = {"hostname":"iyetux.github.io","root":"/","scheme":"Muse","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}};
</script>
<meta name="description" content="人不努力和咸鱼有什么区别">
<meta property="og:type" content="website">
<meta property="og:title" content="一个相信命运可是又不甘心命运的烂人">
<meta property="og:url" content="https://iyetux.github.io/index.html">
<meta property="og:site_name" content="一个相信命运可是又不甘心命运的烂人">
<meta property="og:description" content="人不努力和咸鱼有什么区别">
<meta property="og:locale">
<meta property="article:author" content="Iyetux">
<meta property="article:tag" content="不想做咸鱼的死鱼">
<meta name="twitter:card" content="summary">
<link rel="canonical" href="https://iyetux.github.io/">
<script id="page-configurations">
// https://hexo.io/docs/variables.html
CONFIG.page = {
sidebar: "",
isHome : true,
isPost : false,
lang : 'zh-hans'
};
</script>
<title>一个相信命运可是又不甘心命运的烂人</title>
<noscript>
<style>
.use-motion .brand,
.use-motion .menu-item,
.sidebar-inner,
.use-motion .post-block,
.use-motion .pagination,
.use-motion .comments,
.use-motion .post-header,
.use-motion .post-body,
.use-motion .collection-header { opacity: initial; }
.use-motion .site-title,
.use-motion .site-subtitle {
opacity: initial;
top: initial;
}
.use-motion .logo-line-before i { left: initial; }
.use-motion .logo-line-after i { right: initial; }
</style>
</noscript>
</head>
<body itemscope itemtype="http://schema.org/WebPage">
<div class="container use-motion">
<div class="headband"></div>
<header class="header" itemscope itemtype="http://schema.org/WPHeader">
<div class="header-inner"><div class="site-brand-container">
<div class="site-nav-toggle">
<div class="toggle" aria-label="Navigationsleiste an/ausschalten">
<span class="toggle-line toggle-line-first"></span>
<span class="toggle-line toggle-line-middle"></span>
<span class="toggle-line toggle-line-last"></span>
</div>
</div>
<div class="site-meta">
<a href="/" class="brand" rel="start">
<span class="logo-line-before"><i></i></span>
<h1 class="site-title">一个相信命运可是又不甘心命运的烂人</h1>
<span class="logo-line-after"><i></i></span>
</a>
</div>
<div class="site-nav-right">
<div class="toggle popup-trigger">
</div>
</div>
</div>
<nav class="site-nav">
<ul id="menu" class="main-menu menu">
<li class="menu-item menu-item-home">
<a href="/" rel="section"><i class="fa fa-home fa-fw"></i>Startseite</a>
</li>
<li class="menu-item menu-item-archives">
<a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>Archiv</a>
</li>
</ul>
</nav>
</div>
</header>
<div class="back-to-top">
<i class="fa fa-arrow-up"></i>
<span>0%</span>
</div>
<main class="main">
<div class="main-inner">
<div class="content-wrap">
<div class="content index posts-expand">
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-hans">
<link itemprop="mainEntityOfPage" href="https://iyetux.github.io/2024/08/29/%E8%AE%B0%E5%BD%9522%E5%88%86%E9%92%9F/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="Iyetux">
<meta itemprop="description" content="人不努力和咸鱼有什么区别">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="一个相信命运可是又不甘心命运的烂人">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2024/08/29/%E8%AE%B0%E5%BD%9522%E5%88%86%E9%92%9F/" class="post-title-link" itemprop="url">记录22分钟</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Veröffentlicht am</span>
<time title="Erstellt: 2024-08-29 06:51:15 / Geändert am: 07:05:11" itemprop="dateCreated datePublished" datetime="2024-08-29T06:51:15+08:00">2024-08-29</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>今天空气晴朗,路况好,可能是等红绿灯的时间少。所以,用时22分钟就到了。哇!真不敢相信。22分钟什么概念!但有个习惯要改,看后视镜时间太长,应该主要视角还是前方,瞄一眼后视镜就行,不然长时间看后视镜,人会有视觉偏向,并且车载在走,很容易就偏航了,这是非常严重的安全隐患。这个习惯一定要改。<br>有一件可以给自己点赞的操作,就是前一天晚上回家,到如小区入口时,进车道被占,道路不通,施工方也没在道路摆提示,以至于差一点就得倒车改道了,幸好拐弯时速度控制好,来得急及时便道,虽然是逆行,可是道路被占这也是没办法的,因此,幸好没有来车的情况下安全通过了。虽然处理得不是非常好,可是这波反应可以为自己打气。<br>不过说实话开车真的是很辛苦,以前都不知道司机的辛苦,总以为手脚动动,烧油跑车,有啥累的?现在自己开车才懂得,十二分的精神集中,应对灵活多变的路况,10几个小时的时常。开车作为谋生还真是体力活。</p>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-hans">
<link itemprop="mainEntityOfPage" href="https://iyetux.github.io/2024/08/28/%E4%B9%B0%E4%BA%86%E8%BD%A6%E6%88%91%E6%84%9F%E8%A7%89%E6%80%8E%E4%B9%88%E6%88%90%E4%BA%86%E8%B4%9F%E6%8B%85/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="Iyetux">
<meta itemprop="description" content="人不努力和咸鱼有什么区别">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="一个相信命运可是又不甘心命运的烂人">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2024/08/28/%E4%B9%B0%E4%BA%86%E8%BD%A6%E6%88%91%E6%84%9F%E8%A7%89%E6%80%8E%E4%B9%88%E6%88%90%E4%BA%86%E8%B4%9F%E6%8B%85/" class="post-title-link" itemprop="url">买了车我感觉怎么成了负担</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Veröffentlicht am</span>
<time title="Erstellt: 2024-08-28 06:52:44 / Geändert am: 07:15:25" itemprop="dateCreated datePublished" datetime="2024-08-28T06:52:44+08:00">2024-08-28</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>“明天早上可不可以不起那么早?你都有车了不用起那么早。”<br>单程虽然 15 公里,可是堵车,再加上 20 几个红路灯,妥妥的 1 个多小时耗在路上。我也不想起这么早,如果可以的话谁不想睡觉?每天就是 35 公里路程精神高度集中,再加上晚睡,早起。别人有车确实带来便捷,而我有车似乎成了累赘,钱花了不说,却没有半点效果的提升,这钱真是花得冤枉了。当初为什么要买车,心想着有车路程上方便点,时间节省点,顺道还可以接送小孩。结果一个刚需都没有达到,开车和坐地铁一个时间,而且精神上备受折磨,接送小孩更别说了,停车的地方都没有,而且还不顺道。就我的时间小孩就太早了。别人有车至少逢年过节回老家,我开个车仅仅是为了少走路,花了好几万,身体身体没锻炼,效果没有提升,感觉我花钱就是弊大于利。糊涂啊!年轻时还可以装个B,年纪一大把了,只能说买过车而已。我真怀疑,当初买个可折叠电单车都比汽车强,甚至是接送小孩。坐着地铁,出地铁折叠车代步,妥妥的6K以内所有问题解决。现在倒好请了一尊佛,当然千挑万选,选了一辆自己梦寐以求的车型,这也算是唯一欣慰的。算了,调整好心态慢慢熬吧。</p>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-hans">
<link itemprop="mainEntityOfPage" href="https://iyetux.github.io/2024/08/27/%E4%BB%8A%E5%A4%A9%E6%98%AF%E4%B8%AA%E7%89%B9%E5%88%AB%E7%9A%84%E6%97%A5%E5%AD%90/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="Iyetux">
<meta itemprop="description" content="人不努力和咸鱼有什么区别">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="一个相信命运可是又不甘心命运的烂人">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2024/08/27/%E4%BB%8A%E5%A4%A9%E6%98%AF%E4%B8%AA%E7%89%B9%E5%88%AB%E7%9A%84%E6%97%A5%E5%AD%90/" class="post-title-link" itemprop="url">今天是个特别的日子</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Veröffentlicht am</span>
<time title="Erstellt: 2024-08-27 07:01:07 / Geändert am: 07:16:32" itemprop="dateCreated datePublished" datetime="2024-08-27T07:01:07+08:00">2024-08-27</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>今天 6:15 出门,路况很好,车不多,特别是桥上汇入主路。估计昨天是周一,所以大家都起得早,并且一周的开始都需要报道之类的,所以相似的时间路上已经车有点多,道路有点拥挤了。<br>值得表扬的是,今天没有犯浑,该变道,提前做了准备,上桥也非常平稳,特别是汇入主路。然后就是一路平稳开到办公场地楼下。<br>倒车入库这个事情真的是数量活,怎么都找不到感觉,4 把才安稳入库,自我反思应该还是车感不佳,对于倒车后方把控不到位。之后应该多倒几次可能情况会好点。<br>说起特别的日子,今天是昭君回朝的日子。哈哈,7 天 6 晚的苦逼军训,完结了。想必今天回家要不就是雷霆之怒,要不就是痛哭流涕,又或者是暴风雨前的宁静,反正做好准备接受神之审判吧。也真的欣慰孩子真的长大了,7 天 6 晚真的是没有半点撤退的心态,不知是学校严管通讯还是怎么的,反正这些天我们也没敢与之联系,生怕影响她给,让她有怯懦的心态。军需结束整整 7 天,没想到她竟然坚持了下来,或许此时的心情是生无可恋,又或许是轻松自在,当然大多数应该是前者,可是这种咬咬牙就挺过去的心情,着实是锻炼人的意志,相信在之后无论是学习道路,还是人生道路上,这次苦行会让她面对困难囧境时给予她自信,让她坚持前行走出困境。加油吧!欧里给。</p>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-hans">
<link itemprop="mainEntityOfPage" href="https://iyetux.github.io/2024/08/26/%E8%AE%B0%E5%BD%95%E4%B8%80%E6%AC%A1hexo-deployer-git%E9%94%99%E8%AF%AF%E8%A7%A3%E5%86%B3/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="Iyetux">
<meta itemprop="description" content="人不努力和咸鱼有什么区别">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="一个相信命运可是又不甘心命运的烂人">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2024/08/26/%E8%AE%B0%E5%BD%95%E4%B8%80%E6%AC%A1hexo-deployer-git%E9%94%99%E8%AF%AF%E8%A7%A3%E5%86%B3/" class="post-title-link" itemprop="url">记录一次hexo-deployer-git错误解决</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Veröffentlicht am</span>
<time title="Erstellt: 2024-08-26 11:28:02 / Geändert am: 12:11:49" itemprop="dateCreated datePublished" datetime="2024-08-26T11:28:02+08:00">2024-08-26</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>有时不想 git config -g user.email “****@***.**” ,即不想全局设置 git 用户配置项时, hexo-depolyer-git 总会提示</p>
<figure class="highlight plaintext"><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></pre></td><td class="code"><pre><span class="line">Error: Spawn failed</span><br><span class="line"> at ChildProcess.<anonymous> (C:\_code_\iyetux\node_modules\hexo-deployer-git\node_modules\hexo-util\lib\spawn.js:51:21)</span><br><span class="line"> at ChildProcess.emit (node:events:519:28)</span><br><span class="line"> at cp.emit (C:\_code_\iyetux\node_modules\cross-spawn\lib\enoent.js:34:29)</span><br><span class="line"> at ChildProcess._handle.onexit (node:internal/child_process:294:12)</span><br></pre></td></tr></table></figure>
<p>具体原因应该是读取不到 .git/config 中的用户信息。<br>解决方案:</p>
<ol>
<li>修改 github/settings/emails 将 keep my email address private 勾选去掉</li>
<li>修改项目目录下.deploy_git.git\config 文件。内容如下:<figure class="highlight plaintext"><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><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br></pre></td><td class="code"><pre><span class="line">[core]</span><br><span class="line"> repositoryformatversion = 0</span><br><span class="line"> filemode = false</span><br><span class="line"> bare = false</span><br><span class="line"> logallrefupdates = true</span><br><span class="line"> symlinks = false</span><br><span class="line"> ignorecase = true</span><br><span class="line">[user]</span><br><span class="line"> email="github private email"</span><br><span class="line"> name=Iyetux</span><br><span class="line">[branch "master"]</span><br><span class="line"> remote = https://github.com/Iyetux/Iyetux.github.io.git</span><br><span class="line"> vscode-merge-base = origin/master</span><br><span class="line"> merge = refs/heads/master</span><br><span class="line">[remote "origin"]</span><br><span class="line"> url = https://github.com/Iyetux/Iyetux.github.io.git</span><br><span class="line"> fetch = +refs/heads/*:refs/remotes/origin/*</span><br><span class="line">[pull]</span><br><span class="line"> rebase = true</span><br><span class="line">[credential]</span><br><span class="line"> helper = store</span><br></pre></td></tr></table></figure>
之后就可以正常的使用 hexo<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo clean && hexo g && hexo d</span><br></pre></td></tr></table></figure></li>
</ol>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-hans">
<link itemprop="mainEntityOfPage" href="https://iyetux.github.io/2024/08/26/%E7%8A%AF%E6%B5%91%E7%9A%84%E5%91%A8%E4%B8%80/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="Iyetux">
<meta itemprop="description" content="人不努力和咸鱼有什么区别">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="一个相信命运可是又不甘心命运的烂人">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2024/08/26/%E7%8A%AF%E6%B5%91%E7%9A%84%E5%91%A8%E4%B8%80/" class="post-title-link" itemprop="url">犯浑的周一</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Veröffentlicht am</span>
<time title="Erstellt: 2024-08-26 09:28:43 / Geändert am: 12:18:48" itemprop="dateCreated datePublished" datetime="2024-08-26T09:28:43+08:00">2024-08-26</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>今天周一,刚搬办公新址不久,就要搞什么周一早点名,真搞不懂别的都不用搬,甚至都没看到要什么早点名,而我们啥有意义或作用的都没有尽搞点虚的。真应征了那句话形式主义空大。<br>说起今天犯浑的三件事,主要还是大脑反应太慢了。<br>第一,早上按照地图路线规划,明明到了走过的路口,可是却咋呼着没按道路标识行驶,导致该右拐弯时差点错过了。急急忙荒的纠正过来,方向也打得很急,所以这是思路不清晰第一。<br>第二,行驶过一个右边有岔路口处,心里知道右转让直行,尽然碰到一个不怕死的,不然直行车不说,还硬塞抢占我的道,这里的错误是不应该往左偏打反向试图躲避,而应该握紧方向,减速停车。因为以上两点都是紧张状态下处理不当,要是平日车多,这一定是事故起因。<br>第三,早上上面小鬼领导问起同事去哪里了。没经过大脑就直接应答到同事去吃早饭了。都已经是上班时间,我答去吃早饭,这不是摆明的坑队友情商低吗?还在一根筋的询问同事为什么不能这样答,别人年龄比你小这么多,都意识到问题所在,自己无脑的回答,并且还无意识的反复询问,这不是智商为零吗?<br>看样子是我闲置太久了,本就反应慢的我,脑满肠肥的大脑都生锈了,一脑子的浆糊,做事,思考一根筋。</p>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-hans">
<link itemprop="mainEntityOfPage" href="https://iyetux.github.io/2024/08/26/%E5%85%8B%E6%8B%89%E5%85%8B%E4%BC%A0%E5%A5%87%E6%95%99%E5%B8%88%E7%9A%84%E8%A7%84%E5%88%99/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="Iyetux">
<meta itemprop="description" content="人不努力和咸鱼有什么区别">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="一个相信命运可是又不甘心命运的烂人">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2024/08/26/%E5%85%8B%E6%8B%89%E5%85%8B%E4%BC%A0%E5%A5%87%E6%95%99%E5%B8%88%E7%9A%84%E8%A7%84%E5%88%99/" class="post-title-link" itemprop="url">Unbenannt</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Veröffentlicht am</span>
<time title="Erstellt: 2024-08-26 08:25:45" itemprop="dateCreated datePublished" datetime="2024-08-26T08:25:45+08:00">2024-08-26</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h2 id="Rule-1-Yes-Ma’am-No-Sir"><a href="#Rule-1-Yes-Ma’am-No-Sir" class="headerlink" title="Rule 1: Yes Ma’am, No Sir."></a>Rule 1: Yes Ma’am, No Sir.</h2><p>与大人应对,要有礼貌,有分寸。回答问题时,总是要说“是的,先生”或“不,先生”,只是点头或用其他“是”或“不是”的表达都不行。 </p>
<h2 id="Rule-2-Make-Eye-Contact"><a href="#Rule-2-Make-Eye-Contact" class="headerlink" title="Rule 2: Make Eye Contact"></a>Rule 2: Make Eye Contact</h2><p>与人互动,眼睛要看着对方的眼睛。要知道视线接触的重要性。如果有人在说话,眼睛要一直注视着说话的人;如果有别的人发表意见,则要转过身去,正对着那个人。 </p>
<h2 id="Rule-3-Good-Sportsmanship"><a href="#Rule-3-Good-Sportsmanship" class="headerlink" title="Rule 3: Good Sportsmanship"></a>Rule 3: Good Sportsmanship</h2><p>别人有好表现,要替他高兴。要对游戏获胜者或把某事做得特别出色的人表示祝贺。鼓掌至少持续3秒钟,两个手掌充分接触,以便掌声足够响。 </p>
<h2 id="Rule-4-Discussion-Rules"><a href="#Rule-4-Discussion-Rules" class="headerlink" title="Rule 4: Discussion Rules"></a>Rule 4: Discussion Rules</h2><p>尊重别人的发言与想法。克拉克先生的办法是:“在讨论问题的时候,要对其他同学的评论、观点和想法表示尊重。要尽可能地这样说:“我同意约翰的观点,同时我也感到……”“我不同意沙拉的看法,尽管她抓住了问题的核心,但我觉得……”或者“我认为维可多的观察真是太精彩了,它让我意识到……” </p>
<h2 id="Rule-5-Do-Not-Brag"><a href="#Rule-5-Do-Not-Brag" class="headerlink" title="Rule 5: Do Not Brag"></a>Rule 5: Do Not Brag</h2><p>自己有什么好表现,不要炫耀,输给别人也不要生气。取而代之的是,你可以说一些诸如“我很享受这次比赛,而且很期待下次和你再比一比。”或者你可以说,“非常棒的比赛/游戏。”又或者你可以保持沉默,但不要表现得很生气或者嘲讽对方。 </p>
<h2 id="Rule-6-Conversation"><a href="#Rule-6-Conversation" class="headerlink" title="Rule 6: Conversation"></a>Rule 6: Conversation</h2><p>如果别人问你问题,你也回问他问题。这是一种非常礼貌的表达方式:这能让他们明白你对他们的兴趣和他们对你的兴趣一样多。 </p>
<h2 id="Rule-7-Coughing-Sneezing-Burping"><a href="#Rule-7-Coughing-Sneezing-Burping" class="headerlink" title="Rule 7: Coughing, Sneezing & Burping"></a>Rule 7: Coughing, Sneezing & Burping</h2><p>打喷嚏、咳嗽都要说对不起.当你咳嗽、打喷嚏或打嗝时,需要适当的转过头去,并用整个手或手臂捂住你的嘴,用拳头捂住可不行。然后,你应该说,对不起。“Excuse me。” </p>
<h2 id="Rule-8-Smacking-Your-Lips"><a href="#Rule-8-Smacking-Your-Lips" class="headerlink" title="Rule 8:Smacking Your Lips"></a>Rule 8:Smacking Your Lips</h2><p>不可以有不礼貌的小动作。不要咂嘴、发啧啧声、转眼珠,或做出对人不敬的手势。 </p>
<h2 id="Rule-9-Say-Thank-You"><a href="#Rule-9-Say-Thank-You" class="headerlink" title="Rule 9: Say Thank You"></a>Rule 9: Say Thank You</h2><p>别人送你任何东西,都要说谢谢。如果对方不说谢谢,克拉克先生对待这种情况的办法是:毫不犹豫地收回礼物。 </p>
<h2 id="Rule-10-Receiving-a-gift"><a href="#Rule-10-Receiving-a-gift" class="headerlink" title="Rule 10: Receiving a gift"></a>Rule 10: Receiving a gift</h2><p>接到奖品和礼物,不可以嫌弃。当别人赠送了你什么东西,不要说侮辱人的话,也不要给出关于礼物的负面评论或者暗示礼物不好。 </p>
<h2 id="Rule-11-Random-Acts-of-Kindness"><a href="#Rule-11-Random-Acts-of-Kindness" class="headerlink" title="Rule 11: Random Acts of Kindness"></a>Rule 11: Random Acts of Kindness</h2><p>用小小的贴心,为别人制造惊喜。每个月至少为他人制造一次惊喜或者做一件非常慷慨的事。 </p>
<h2 id="Rule-12-Grading-Papers"><a href="#Rule-12-Grading-Papers" class="headerlink" title="Rule 12: Grading Papers"></a>Rule 12: Grading Papers</h2><p>改同学试卷时要特别谨慎。当你对其他学生的试卷进行评分时,如果你给了对方不正确的分数,不管这个分数比他们应该得到的分数更高还是更低,只要有与实际成绩不同的分数,那么我将从你的得分中扣除。 </p>
<h2 id="Rule-13-Reading-Aloud"><a href="#Rule-13-Reading-Aloud" class="headerlink" title="Rule 13: Reading Aloud"></a>Rule 13: Reading Aloud</h2><p>全班一起念课文时,要看着正念的一字一句。“每当给孩子们念书的时候,我会感情饱满、精力充沛、表现力丰富地去读,我会全身心地进入角色。”克拉克先生还根据角色不断变换各种嗓音,做各种动作。“这种方法使整个阅读的过程充满了乐趣,同时也告诉孩子们,阅读是件多么令人着迷的事情。”.“如果我看到那个学生在我们读书的时候眼睛没盯着那一页,或者我叫一个学生接着读,他却不知道我们刚才读到哪里了,那么这个学生的名字就会被记在黑板上。”习惯成自然,以后孩子们集中注意力的能力会很高的吧。 </p>
<h2 id="Rule-14-Answer-all-questions-in-complete-sentences"><a href="#Rule-14-Answer-all-questions-in-complete-sentences" class="headerlink" title="Rule 14: Answer all questions in complete sentences."></a>Rule 14: Answer all questions in complete sentences.</h2><p>以完整的句子回答所有的问题.第一复述问题并给出答案,第二给出主要理由,第三展开说明理由,最后重复问题并给出答案结束。克拉克先生要求学生用这样的方式回答问题,锻炼学生的语言表达能力合写作能力。 </p>
<h2 id="Rule-15-Rewards"><a href="#Rule-15-Rewards" class="headerlink" title="Rule 15: Rewards"></a>Rule 15: Rewards</h2><p>不要主动讨奖品.克拉克先生经常给好学生发些奖品,但成绩好的学生索要奖品时,他会坚决拒绝。“我努力让他们知道,尽力做好每件事不是为了奖品,而是为了他们自己。”“帮助孩子们最终学会肯定自我奋斗的价值。”</p>
<h2 id="Rule-16-Homework"><a href="#Rule-16-Homework" class="headerlink" title="Rule 16: Homework"></a>Rule 16: Homework</h2><p>每天都要做完作业.克拉克先生的高招是:“在教室外贴了一条巨大的横幅”,上面写着:“全班所有同学连续完成全部家庭作业___天”。当孩子们连续完成超过10天,克拉克先生就开始给孩子们做好吃的小点心。孩子们最长是连续62天,克拉克先生说他都成了“厨爷”了。真是够疯狂的,那年克拉克先生的学生们成绩跟坐了火箭一样狂涨。 </p>
<h2 id="Rule-17-Transitions"><a href="#Rule-17-Transitions" class="headerlink" title="Rule 17: Transitions"></a>Rule 17: Transitions</h2><p>换科目的时候,动作要快、要安静,要守秩序.克拉克先生训练学生们像游戏、比赛一样的换书、换本,还帮老师安装投影机(接电源、拉屏幕、关窗户、拉窗帘、关灯),孩子们被训练得井然有序、津津有味、其乐无穷~~ </p>
<h2 id="Rule-18-Organization"><a href="#Rule-18-Organization" class="headerlink" title="Rule 18: Organization"></a>Rule 18: Organization</h2><p>做什么事都要有条理.为了帮助孩子们变得有条理,克拉克老师在假期里去商店买回了一套他希望孩子们人手一份的用具,能装下笔记本的大架子、活页纸、笔记本、尺等等。克拉克老师把买到的所有物品摆放在地板上拍照,并列好明细清单,在开学前3个星期给每个学生发了一份照片和信。开学时,克拉克老师仔细检查每位同学的用品,告诉他们每件东西什么时候用,在上面贴上标签,还给孩子们做示范等等,后来孩子们自然变得非常有条理,克拉克老师领悟到,其实孩子很喜欢条理化。另外,值得一提的是,克拉克老师每年都问他以前的学生,他们的新老师对他们在班上的表现有哪些看法。这样克拉克老师就可以从侧面了解自己的教学有哪些不足,有哪些成功。 </p>
<h2 id="Rule-19-Complaining"><a href="#Rule-19-Complaining" class="headerlink" title="Rule 19: Complaining"></a>Rule 19: Complaining</h2><p>不要抱怨和叫苦.老师在指定作业的时候,不要叫苦;如果谁违反了,他就必须做两倍的作业。克拉克坚持这个严厉的惩罚,就是为了让孩子以积极进取的心态接受必须的完成的任务。克拉克老师认为:与其让布置的每一项作业(或必须完成的任务)都被抱怨,每一件应该完成的工作都充满了逆反情绪,还不如让他们做几次双倍的作业,从此以后在接受作业(和任务)的时候再也不会抱怨和发牢骚。 </p>
<h2 id="Rule-20-The-Sub-Clause"><a href="#Rule-20-The-Sub-Clause" class="headerlink" title="Rule 20: The Sub Clause"></a>Rule 20: The Sub Clause</h2><p>别的老师来代课,也要守班规.这个细节的目的是为了培养孩子“无论有没有老板在身边,他们工作都是为了自己”,也就是培养自觉性。克拉克为此做了很多努力,苦口婆心的教导。 </p>
<h2 id="Rule-21-Protocols"><a href="#Rule-21-Protocols" class="headerlink" title="Rule 21: Protocols"></a>Rule 21: Protocols</h2><p>课堂上发言,或起身,应该讲规矩.未经允许请勿离开座位。(例外)如果你生病了,可以立即离开。不要说话除非:你举起手来,我会叫你回答。我问你一个问题,你正在回答。休息或午餐时间。我在课堂上另有指示(比如在小组工作期间)。在上学之前把铅笔削好。你不能在9am-2:50pm期间使用铅笔刀。上学前处理好你的个人私事。总是有一本能让你安静下来读的书。这本书可以放在你的书桌里或者书桌上。如果你快读完了,就再准备一本! </p>
<h2 id="Rule-22-Water-Food"><a href="#Rule-22-Water-Food" class="headerlink" title="Rule 22: Water & Food"></a>Rule 22: Water & Food</h2><p>不可以上课上一半,起身去倒水.你甚至可以在自己的桌子上吃东西,只要别人没看到或者没听到你吃它(任何人只要把桌子搞得一团糟就会失去这一特权。)此外,当我们排队时,不要在任何饮水机前停留。嚼口香糖是违反校规的,嚼口香糖的学生会立即被拘留。除了课堂上的庆祝活动外,水是唯一允许在教室里喝的饮料。</p>
<h2 id="Rule-23-Learn-Names"><a href="#Rule-23-Learn-Names" class="headerlink" title="Rule 23: Learn Names"></a>Rule 23: Learn Names</h2><p>见到每个老师,都要说某某老师好.克拉克老师要求孩子们“要迅速记住全校老师的名字”,并在遇到的时候打招呼,同时还没忘记强调排队走路的时候除外,因为那时有“不许讲话”的纪律.克拉克老师希望学生们培养起良好的社交习惯,以便进入社会后“能主动了解周围的同事或邻居”,“并努力做到善意、有礼貌地对待别人。” </p>
<h2 id="Rule-24-The-Bathroom"><a href="#Rule-24-The-Bathroom" class="headerlink" title="Rule 24: The Bathroom"></a>Rule 24: The Bathroom</h2><p>注意洗手间的卫生,把身边的病原减少到最少.克拉克先生要求学生:必须冲厕所,如果按纽很脏就用手纸垫着。“己所不欲,勿施于人”,自己不愿意使用肮脏的小便器,就一定要冲洗干净自己用过的。</p>
<h2 id="Rule-25-Look-Away"><a href="#Rule-25-Look-Away" class="headerlink" title="Rule 25: Look Away"></a>Rule 25: Look Away</h2><p>同学受罚的时候不要看着他,请看向别处.如果我或者学校里的其他老师在对学生说话或管教学生,不要盯着那个学生看。如果你遇到麻烦或受到斥责,你不希望别人盯着你看对吗?所以不要在这种情况下看别人。如果你是我正在交谈的学生,不要对正在看着你的学生生气或大惊小怪。你只需要让我知道,我会处理好情况的。“为了避免尴尬和因公开展示而引起的愤怒,我要保证孩子们理解和遵守这个规矩。”不做落井下石、幸灾乐祸的事,我还是那句话“己所不欲,勿施于人。”</p>
<h2 id="Rule-26-Do-Not-Save-Seats"><a href="#Rule-26-Do-Not-Save-Seats" class="headerlink" title="Rule 26: Do Not Save Seats"></a>Rule 26: Do Not Save Seats</h2><p>不要帮同学占位子.如果有人想做你身边的空位子,就让他坐,不要刻意去排斥什么人。“我们是个大家庭,应该善意地对待和尊重别人。”克拉克老师很讨厌看到有孩子被孤立,反对孩子总坐在相同的位置上或故意占座位。克拉克老师教育孩子们“必须保证他们自己和他们的朋友懂得包容别人,并努力地接受别人参与他们的活动。” </p>
<h2 id="Rule-27-Call-me"><a href="#Rule-27-Call-me" class="headerlink" title="Rule 27: Call me"></a>Rule 27: Call me</h2><p>对作业的任何问题,可以打电话来我家问我.我没接的话,你可以留言,但只要留一次就够了。克拉克老师为了与学生保持更紧密的联系,把自己的电话公布给学生们。</p>
<h2 id="Rule-28-让客人有宾至如归的感觉"><a href="#Rule-28-让客人有宾至如归的感觉" class="headerlink" title="Rule 28:让客人有宾至如归的感觉"></a>Rule 28:让客人有宾至如归的感觉</h2><p>“如果有人要参观我们教室,我会派两名学生在教学楼前等候,并举着一个欢迎牌。当我们的参观者到来时,接待者要和他们握手,向他们作自我介绍,并致欢迎辞,然后,在带他们进教室之前,先领他们简单地参观一下校园。” </p>
<h2 id="Rule-29-ABCs-of-Etiquette"><a href="#Rule-29-ABCs-of-Etiquette" class="headerlink" title="Rule 29: ABCs of Etiquette"></a>Rule 29: ABCs of Etiquette</h2><p>用餐要讲究礼仪.克拉克老师耐心地将西餐的全套礼仪教给孩子,孩子们居然很爱学,像小绅士一样。</p>
<h2 id="Rule-30-Clean-up-after-yourself"><a href="#Rule-30-Clean-up-after-yourself" class="headerlink" title="Rule 30: Clean up after yourself"></a>Rule 30: Clean up after yourself</h2><p>吃完饭,自己的垃圾自己处理.克拉克老师要求他的学生们吃完饭要把桌子擦干净,掉在地上的要捡起来扔到垃圾箱里,还要检查垃圾箱周围有没有垃圾并清理干净。克拉克老师还要求孩子看到别人乱丢的垃圾也要拣起来,经常奖励拣垃圾的孩子,也经常公布不拣垃圾的孩子。为此花了一年的时间才基本培养好了一个班的孩子。 </p>
<h2 id="Rule-31-Hotels"><a href="#Rule-31-Hotels" class="headerlink" title="Rule 31: Hotels"></a>Rule 31: Hotels</h2><p>接受别人的服务要惜福.当我们住在酒店房间时,如果在我们入住后为负责打扫房间的酒店工作人员在枕头上留下小费意味着我们对他们很感激。参考酒店房间的价格付小费吧,每晚两美元或三美元是合适的。这笔费用应该囊括在你的旅行费用之中。 </p>
<h2 id="Rule-32-The-Bus"><a href="#Rule-32-The-Bus" class="headerlink" title="Rule 32: The Bus"></a>Rule 32: The Bus</h2><p>坐车要坐好,别打扰司机.这里,克拉克老师强调学生乘坐校车时的纪律,是礼貌、纪律,更是为了孩子们的安全。克拉克老师强调,下车的时候“任何时候都要记得感谢司机,并祝他一天开心”。</p>
<h2 id="Rule-33-Field-trips"><a href="#Rule-33-Field-trips" class="headerlink" title="Rule 33: Field trips"></a>Rule 33: Field trips</h2><p>在野外旅行时会认识很多新朋友,你要记住对方的名字.克拉克先生有意训练孩子们这项技能,立下了一些有助于记住人家名字的规矩:介绍后要起立握手,并称呼人家的名字问好;交谈中尽量多重复人家的名字;分手时要再次重复他们的名字。</p>
<h2 id="Rule-34-Food"><a href="#Rule-34-Food" class="headerlink" title="Rule 34: Food"></a>Rule 34: Food</h2><p>吃自助餐,或与人同桌,取菜不可贪多.“永远不要取走比你实际所需的分量多的食物。”“因为这样不仅会造成浪费,而且如果你不给别人留够了的话,对别人也是一种不尊重。”克拉克老师在见到孩子们盘内堆积如山的食物后,要求孩子们“盘子被食物覆盖的面积不得超过四分之三,一种食物的上面不能摞上其他的食物。”</p>
<h2 id="Rule-35-Pick-it-Up"><a href="#Rule-35-Pick-it-Up" class="headerlink" title="Rule 35: Pick it Up"></a>Rule 35: Pick it Up</h2><p>别人掉东西,请弯腰去帮他捡</p>
<h2 id="Rule-36-Doors"><a href="#Rule-36-Doors" class="headerlink" title="Rule 36: Doors"></a>Rule 36: Doors</h2><p>进门时,如果后面有人,请他扶住门.如果开门的时候需要拉的话,你就拉开门,自己站在一边,让别人先过去,然后你再走过去;如果开门的时候需要推门,你就在自己走过去后用手扶住门,只要后面有人,别松手。克拉克老师认为,教孩子一些小小的善意举止虽然看起来微不足道,但对孩子们了解如何尊重和重视别人大有裨益。克拉克老师教孩子的时候非常注意细节,如扶门时站的位置、扶多长时间、说点什么等等更加细节的东西。</p>
<h2 id="Rule-37-Excuse-Me"><a href="#Rule-37-Excuse-Me" class="headerlink" title="Rule 37: Excuse Me"></a>Rule 37: Excuse Me</h2><p>别人碰到你,不管有没有错,都要说声对不起.克拉克老师说:在学校里,一次轻微的碰撞,也能导致第三次世界大战的爆发。克拉克老师对礼貌是非常重视的,在孩子乘坐飞机之前,他亲自在教室里把椅子摆成飞机过道的样子,训练孩子们。</p>
<h2 id="Rule-38-Silent-Entry"><a href="#Rule-38-Silent-Entry" class="headerlink" title="Rule 38: Silent Entry"></a>Rule 38: Silent Entry</h2><p>进行校外教学时,无论到哪一个公共场所,都要安安静静.“有时候,人们做了什么好事不一定都能给他人留下印象,尤其是他做这件好事的时候其实周围根本没人,他做好事是出自本心,而不是给别人看,这就更值得你敬重了。”</p>
<h2 id="Rule-39-Complements"><a href="#Rule-39-Complements" class="headerlink" title="Rule 39: Complements"></a>Rule 39: Complements</h2><p>去参观别人的地方,要不吝于赞美.这看似是一种对主人的尊重,如果形成习惯,也可能形成一种乐观的生活态度。克拉克老师认为孩子们应该有这样的风度,所以在外出前专门对孩子们进行这方面的训练,这是把握课外机会对孩子的培养。</p>
<h2 id="Rule-40-Assemblies"><a href="#Rule-40-Assemblies" class="headerlink" title="Rule 40: Assemblies"></a>Rule 40: Assemblies</h2><p>全校师生集会的时候,不要讲话.我们的老师们也很重视纪律的,经常强调。有趣的是,为了让学生知道怎样保持纪律,可拉克老师把学生们叫到礼堂里,坐好,手放在大腿上,眼睛看着前面。然后,克拉克先生不断地在礼堂的各个位置出现,喊学生的名字,想办法骚扰孩子们,看哪个孩子破坏纪律。生动有趣,用心良苦。</p>
<h2 id="Rule-41-Telephone"><a href="#Rule-41-Telephone" class="headerlink" title="Rule 41: Telephone"></a>Rule 41: Telephone</h2><p>接电话的言谈要得体</p>
<h2 id="Rule-42-After-a-Trip"><a href="#Rule-42-After-a-Trip" class="headerlink" title="Rule 42: After a Trip"></a>Rule 42: After a Trip</h2><p>一趟校外教学结束,要谢谢所有随行的老师和家长.“我不在意你是否感谢我,我关心的是你要学会在别人给你提供额外帮助的时候,你能恰当地表示感谢。”</p>
<h2 id="Rule-43-Escalators"><a href="#Rule-43-Escalators" class="headerlink" title="Rule 43: Escalators"></a>Rule 43: Escalators</h2><p>搭乘电梯时,要站右边,请赶时间的人走左边.克拉克教孩子“在自动扶梯上,要站在右侧,从左侧走动”,“在进入电梯、地铁或地下通道前,要礼让出去的人先行。”</p>
<h2 id="Rule-44-In-Line"><a href="#Rule-44-In-Line" class="headerlink" title="Rule 44: In Line"></a>Rule 44: In Line</h2><p>列队行进时不要说话.克拉克先生上班的第一天,管理的是个纪律散漫的班级。克拉克先生要求孩子们排队吃饭时要有秩序,要安静,如果有一个孩子多说一个字,全班就多等1分钟。结果,在集体等候45分钟后,孩子们排着整齐、安静的队伍进入食堂。用克拉克先生的话来说,校长站在门口“吃惊地看着我们发呆”。“也许有人会说,这有点太军事化了,但是我认为孩子们其实喜欢这么排队,他们会为自己能把队排得这么好看而感到骄傲。”克拉克老师要求孩子们在排两队进门的时候,“离墙近的那一队先进,另一队要笔直地站在大厅的中央,留在那里等候我的命令,接下来我会说:“每个人准备……行动!”所有孩子立刻会像一个完整的整体一样,右腿迅速横跨一步,靠向墙边。看到孩子们在同一刻步调一致地行动,会令人产生一种感觉,那就是“酷!”然后我再发出命令:“进入!”他们就整齐地进去了。”</p>
<h2 id="Rule-45-Cutting"><a href="#Rule-45-Cutting" class="headerlink" title="Rule 45: Cutting"></a>Rule 45: Cutting</h2><p>不可以插队.但看到别人插队时不可以大呼小叫,让老师知道就好。“如果有人插到了你前面,一个字也不要说,随他去,只要告诉我一声,我就会来处理的。如果你非要和加塞儿的人理论,你也一样会有麻烦的,这不值得你这样做。同学之间解决任何纠纷,都应该在自己着手处理之前,先带着问题来找我。”</p>
<h2 id="Rule-46-Movies"><a href="#Rule-46-Movies" class="headerlink" title="Rule 46: Movies"></a>Rule 46: Movies</h2><p>看电影时不要说话.克拉克先生希望孩子们懂得如何文明地观看电影,从而使很多人看电影的经历成为一种更加愉快的享受。这也是教孩子们学会尊重别人。</p>
<h2 id="Rule-47-Snickers"><a href="#Rule-47-Snickers" class="headerlink" title="Rule 47: Snickers"></a>Rule 47: Snickers</h2><p>不可以带玩具到学校来</p>
<h2 id="Rule-48-Other-Students"><a href="#Rule-48-Other-Students" class="headerlink" title="Rule 48: Other Students"></a>Rule 48: Other Students</h2><p>有谁欺负你,让老师知道</p>
<h2 id="Rule-49-Stand-Up-For-what-you-Believe-in"><a href="#Rule-49-Stand-Up-For-what-you-Believe-in" class="headerlink" title="Rule 49: Stand Up For what you Believe in"></a>Rule 49: Stand Up For what you Believe in</h2><p>自己的理想自己要坚持.“在我一生中,已经数不清有多少次了,我想做某事,而周围的每个人都反对。”“我希望他们(我的学生们)有勇气为自己的信念义无返顾地付出努力,并为他们想要做的事情而奋斗。”</p>
<h2 id="Rule-50-Be-Positive"><a href="#Rule-50-Be-Positive" class="headerlink" title="Rule 50: Be Positive"></a>Rule 50: Be Positive</h2><p>要乐观,要享受人生.“保持乐观的态度,尽情享受生活。有些事情不值得大惊小怪。学会为每件事作好准备,去追求生命中的美好。”“我自己也在努力培养这种品质,并且以此来影响我的学生。”</p>
<h2 id="Rule-51-No-Regrets"><a href="#Rule-51-No-Regrets" class="headerlink" title="Rule 51: No Regrets"></a>Rule 51: No Regrets</h2><p>既然想做一件事,就只管去做.克拉克先生经常给他的学生讲自己的故事和其他相似的故事,教育孩子们,凡事想好了就勇往直前地去做,全力以赴,这样到什么时候都不会后悔。</p>
<h2 id="Rule-52-Accept-Mistakes"><a href="#Rule-52-Accept-Mistakes" class="headerlink" title="Rule 52: Accept Mistakes"></a>Rule 52: Accept Mistakes</h2><p>从错误中学习,继续向前迈进.克拉克先生现身说法,讲述人生道理。老师也是人,是人就会犯错误;老师不是一般人,个人的错误会影响班里的很多孩子。</p>
<h2 id="Rule-53-Be-Honest"><a href="#Rule-53-Be-Honest" class="headerlink" title="Rule 53: Be Honest"></a>Rule 53: Be Honest</h2><p>不管如何,一定要诚实.“开学第一天,我反复跟孩子们解释,即使有时讲实话会遇到一点小麻烦,但还是值得的,说明你良心未泯。我告诉他们讲实话非常重要,因为此举能赢得别人的尊重和信任,而这两种荣誉应该伴你一生。”</p>
<h2 id="Rule-54-Carpe-Diem"><a href="#Rule-54-Carpe-Diem" class="headerlink" title="Rule 54: Carpe Diem"></a>Rule 54: Carpe Diem</h2><p>抓住今天.你只有一个今天,所以不要浪费它。当人们抛下忧虑采取行动学会活在当下时,无数个这样特殊的时刻叠加在一起就变成了我们的生活。 及时行乐,拉丁语叫:Carpe Diem。</p>
<h2 id="Rule-55-Be-the-best-person-you-can-be"><a href="#Rule-55-Be-the-best-person-you-can-be" class="headerlink" title="Rule 55: Be the best person you can be"></a>Rule 55: Be the best person you can be</h2><p>在你的能力范围内,做最好、最好的人</p>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-hans">
<link itemprop="mainEntityOfPage" href="https://iyetux.github.io/2024/08/26/hello-world/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="Iyetux">
<meta itemprop="description" content="人不努力和咸鱼有什么区别">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="一个相信命运可是又不甘心命运的烂人">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2024/08/26/hello-world/" class="post-title-link" itemprop="url">Hello World</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Veröffentlicht am</span>
<time title="Erstellt: 2024-08-26 08:25:45" itemprop="dateCreated datePublished" datetime="2024-08-26T08:25:45+08:00">2024-08-26</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>Welcome to <a target="_blank" rel="noopener" href="https://hexo.io/">Hexo</a>! This is your very first post. Check <a target="_blank" rel="noopener" href="https://hexo.io/docs/">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a target="_blank" rel="noopener" href="https://hexo.io/docs/troubleshooting.html">troubleshooting</a> or you can ask me on <a target="_blank" rel="noopener" href="https://github.com/hexojs/hexo/issues">GitHub</a>.</p>
<h2 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><h3 id="Create-a-new-post"><a href="#Create-a-new-post" class="headerlink" title="Create a new post"></a>Create a new post</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo new <span class="string">"My New Post"</span></span><br></pre></td></tr></table></figure>
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/writing.html">Writing</a></p>
<h3 id="Run-server"><a href="#Run-server" class="headerlink" title="Run server"></a>Run server</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo server</span><br></pre></td></tr></table></figure>
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/server.html">Server</a></p>
<h3 id="Generate-static-files"><a href="#Generate-static-files" class="headerlink" title="Generate static files"></a>Generate static files</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo generate</span><br></pre></td></tr></table></figure>
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/generating.html">Generating</a></p>
<h3 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo deploy</span><br></pre></td></tr></table></figure>
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/one-command-deployment.html">Deployment</a></p>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-hans">
<link itemprop="mainEntityOfPage" href="https://iyetux.github.io/2024/08/26/React%20TinyMCE%20using%20modules%20import/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="Iyetux">
<meta itemprop="description" content="人不努力和咸鱼有什么区别">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="一个相信命运可是又不甘心命运的烂人">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2024/08/26/React%20TinyMCE%20using%20modules%20import/" class="post-title-link" itemprop="url">Unbenannt</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Veröffentlicht am</span>
<time title="Erstellt: 2024-08-26 08:25:45" itemprop="dateCreated datePublished" datetime="2024-08-26T08:25:45+08:00">2024-08-26</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h1 id="React-TinyMCE-using-modules-import"><a href="#React-TinyMCE-using-modules-import" class="headerlink" title="React TinyMCE using modules import"></a>React TinyMCE using modules import</h1><h2 id="1-安装相关依赖-当前案例使用的是TinyMCE5"><a href="#1-安装相关依赖-当前案例使用的是TinyMCE5" class="headerlink" title="1. 安装相关依赖(当前案例使用的是TinyMCE5+)"></a>1. 安装相关依赖(当前案例使用的是TinyMCE5+)</h2><figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ npm install -S tinymce @tinymce/tinymce-react</span><br></pre></td></tr></table></figure>
<h2 id="2-tsx组件代码"><a href="#2-tsx组件代码" class="headerlink" title="2. tsx组件代码"></a>2. tsx组件代码</h2><figure class="highlight javascript"><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><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">import</span> <span class="title class_">React</span>, { useState } <span class="keyword">from</span> <span class="string">'react'</span>;</span><br><span class="line"><span class="keyword">import</span> <span class="string">'tinymce/tinymce'</span>;</span><br><span class="line"><span class="keyword">import</span> <span class="string">'tinymce/icons/default'</span>;</span><br><span class="line"><span class="keyword">import</span> <span class="string">'tinymce/themes/silver'</span>;</span><br><span class="line"><span class="keyword">import</span> <span class="string">'tinymce/plugins/paste'</span>;</span><br><span class="line"><span class="keyword">import</span> <span class="string">'tinymce/plugins/link'</span>;</span><br><span class="line"><span class="keyword">import</span> <span class="string">'tinymce/plugins/image'</span>;</span><br><span class="line"><span class="keyword">import</span> <span class="string">'tinymce/plugins/table'</span>;</span><br><span class="line"><span class="keyword">import</span> <span class="string">'tinymce/skins/ui/oxide/skin.min.css'</span>;</span><br><span class="line"><span class="keyword">import</span> <span class="string">'tinymce/skins/ui/oxide/content.min.css'</span>;</span><br><span class="line"><span class="keyword">import</span> <span class="string">'tinymce/skins/content/default/content.min.css'</span>;</span><br><span class="line"><span class="keyword">import</span> { <span class="title class_">Editor</span> } <span class="keyword">from</span> <span class="string">'@tinymce/tinymce-react'</span>;</span><br><span class="line"></span><br><span class="line"><span class="keyword">export</span> <span class="keyword">default</span> <span class="keyword">function</span> <span class="title function_">Login</span>(<span class="params"></span>){</span><br><span class="line"> <span class="keyword">const</span> [contentEditor, setContentEditor] = <span class="title function_">useState</span>();</span><br><span class="line"> <span class="keyword">const</span> <span class="title function_">handleEditorChange</span> = (<span class="params">content:any, editor:any</span>) => {</span><br><span class="line"> <span class="variable language_">console</span>.<span class="title function_">log</span>(<span class="string">'Content was updated:'</span>, content);</span><br><span class="line"> <span class="title function_">setContentEditor</span>(content);</span><br><span class="line"> };</span><br><span class="line"></span><br><span class="line"> <span class="keyword">return</span> (</span><br><span class="line"> <span class="language-xml"><span class="tag"><></span></span></span><br><span class="line"><span class="language-xml"> <span class="tag"><<span class="name">h1</span>></span>Login page<span class="tag"></<span class="name">h1</span>></span></span></span><br><span class="line"><span class="language-xml"> <span class="tag"><<span class="name">Editor</span></span></span></span><br><span class="line"><span class="tag"><span class="language-xml"> <span class="attr">initialValue</span>=<span class="string">"<p>This is the initial content of the editor</p>"</span></span></span></span><br><span class="line"><span class="tag"><span class="language-xml"> <span class="attr">init</span>=<span class="string">{{</span></span></span></span><br><span class="line"><span class="tag"><span class="language-xml"> <span class="attr">skin:</span> <span class="attr">false</span>,</span></span></span><br><span class="line"><span class="tag"><span class="language-xml"> <span class="attr">content_css:</span> <span class="attr">false</span>,</span></span></span><br><span class="line"><span class="tag"><span class="language-xml"> <span class="attr">height:</span> <span class="attr">500</span>,</span></span></span><br><span class="line"><span class="tag"><span class="language-xml"> <span class="attr">menubar:</span> <span class="attr">false</span>,</span></span></span><br><span class="line"><span class="tag"><span class="language-xml"> <span class="attr">plugins:</span> [</span></span></span><br><span class="line"><span class="tag"><span class="language-xml"> '<span class="attr">link</span> <span class="attr">image</span>',</span></span></span><br><span class="line"><span class="tag"><span class="language-xml"> '<span class="attr">table</span> <span class="attr">paste</span>'</span></span></span><br><span class="line"><span class="tag"><span class="language-xml"> ],</span></span></span><br><span class="line"><span class="tag"><span class="language-xml"> <span class="attr">toolbar:</span></span></span></span><br><span class="line"><span class="tag"><span class="language-xml"> `<span class="attr">undo</span> <span class="attr">redo</span> | <span class="attr">formatselect</span> | <span class="attr">bold</span> <span class="attr">italic</span> <span class="attr">backcolor</span> | </span></span></span><br><span class="line"><span class="tag"><span class="language-xml"> <span class="attr">alignleft</span> <span class="attr">aligncenter</span> <span class="attr">alignright</span> <span class="attr">alignjustify</span> | </span></span></span><br><span class="line"><span class="tag"><span class="language-xml"> <span class="attr">bullist</span> <span class="attr">numlist</span> <span class="attr">outdent</span> <span class="attr">indent</span> | <span class="attr">removeformat</span> | <span class="attr">help</span>`</span></span></span><br><span class="line"><span class="tag"><span class="language-xml"> }}</span></span></span><br><span class="line"><span class="tag"><span class="language-xml"> <span class="attr">value</span>=<span class="string">{contentEditor}</span></span></span></span><br><span class="line"><span class="tag"><span class="language-xml"> <span class="attr">onEditorChange</span>=<span class="string">{handleEditorChange}</span></span></span></span><br><span class="line"><span class="tag"><span class="language-xml"> /></span></span></span><br><span class="line"><span class="language-xml"> <span class="tag"></></span></span></span><br><span class="line"> );</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-hans">
<link itemprop="mainEntityOfPage" href="https://iyetux.github.io/2024/08/26/Hugo%E6%A1%86%E6%9E%B6go%E8%AF%AD%E8%A8%80%E7%89%88hexo/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="Iyetux">
<meta itemprop="description" content="人不努力和咸鱼有什么区别">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="一个相信命运可是又不甘心命运的烂人">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2024/08/26/Hugo%E6%A1%86%E6%9E%B6go%E8%AF%AD%E8%A8%80%E7%89%88hexo/" class="post-title-link" itemprop="url">Unbenannt</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Veröffentlicht am</span>
<time title="Erstellt: 2024-08-26 08:25:45" itemprop="dateCreated datePublished" datetime="2024-08-26T08:25:45+08:00">2024-08-26</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h1 id="Hugo框架go语言版hexo"><a href="#Hugo框架go语言版hexo" class="headerlink" title="Hugo框架go语言版hexo."></a>Hugo框架go语言版hexo.</h1><p><a href="gohugo.io">Hugo</a></p>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-hans">
<link itemprop="mainEntityOfPage" href="https://iyetux.github.io/2024/08/26/Electron%E6%96%B0%E7%89%88CORS%E9%97%AE%E9%A2%98/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="Iyetux">
<meta itemprop="description" content="人不努力和咸鱼有什么区别">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="一个相信命运可是又不甘心命运的烂人">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2024/08/26/Electron%E6%96%B0%E7%89%88CORS%E9%97%AE%E9%A2%98/" class="post-title-link" itemprop="url">Unbenannt</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Veröffentlicht am</span>
<time title="Erstellt: 2024-08-26 08:25:45" itemprop="dateCreated datePublished" datetime="2024-08-26T08:25:45+08:00">2024-08-26</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h1 id="Electron-跨域问题"><a href="#Electron-跨域问题" class="headerlink" title="Electron 跨域问题"></a>Electron 跨域问题</h1><h2 id="Electron8-后直接使用-webSecurity-false-无效-需要修改代码如下"><a href="#Electron8-后直接使用-webSecurity-false-无效-需要修改代码如下" class="headerlink" title="Electron8*后直接使用 webSecurity: false 无效.需要修改代码如下"></a>Electron8*后直接使用 webSecurity: false 无效.需要修改代码如下</h2><figure class="highlight javascript"><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">mainWindow = <span class="keyword">new</span> <span class="title class_">BrowserWindow</span>({</span><br><span class="line"> <span class="attr">show</span>: <span class="literal">false</span>,</span><br><span class="line"> <span class="attr">width</span>: <span class="number">1024</span>,</span><br><span class="line"> <span class="attr">height</span>: <span class="number">728</span>,</span><br><span class="line"> <span class="attr">icon</span>: <span class="title function_">getAssetPath</span>(<span class="string">'icon.png'</span>),</span><br><span class="line"> <span class="attr">webPreferences</span>: {</span><br><span class="line"> <span class="attr">preload</span>: path.<span class="title function_">join</span>(__dirname, <span class="string">'preload.js'</span>),</span><br><span class="line"> <span class="comment">// 默认的允许CORS设置不能少</span></span><br><span class="line"> <span class="attr">webSecurity</span>: <span class="literal">false</span>,</span><br><span class="line"> <span class="attr">allowRunningInsecureContent</span>: <span class="literal">true</span>,</span><br><span class="line"> },</span><br><span class="line"> });</span><br><span class="line"><span class="comment">// 额外需要新增设置</span></span><br><span class="line">app.<span class="property">commandLine</span>.<span class="title function_">appendSwitch</span>(<span class="string">'disable-features'</span>, <span class="string">'OutOfBlinkCors'</span>);</span><br></pre></td></tr></table></figure>
<h2 id="另新增内容与跨域无关可是了解学习ElectronAPI的调用-这里以customerSchema-privileges为例子"><a href="#另新增内容与跨域无关可是了解学习ElectronAPI的调用-这里以customerSchema-privileges为例子" class="headerlink" title="另新增内容与跨域无关可是了解学习ElectronAPI的调用.这里以customerSchema privileges为例子."></a>另新增内容与跨域无关可是了解学习ElectronAPI的调用.这里以customerSchema privileges为例子.</h2><figure class="highlight javascript"><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></pre></td><td class="code"><pre><span class="line"><span class="keyword">import</span> { app, <span class="title class_">BrowserWindow</span>, shell, ipcMain, protocol } <span class="keyword">from</span> <span class="string">'electron'</span>;</span><br><span class="line">protocol.<span class="title function_">registerSchemesAsPrivileged</span>([</span><br><span class="line"> {</span><br><span class="line"> <span class="attr">scheme</span>: <span class="string">'app'</span>,</span><br><span class="line"> <span class="attr">privileges</span>: {</span><br><span class="line"> <span class="attr">corsEnabled</span>: <span class="literal">true</span>,</span><br><span class="line"> <span class="attr">bypassCSP</span>: <span class="literal">true</span>,</span><br><span class="line"> },</span><br><span class="line"> },</span><br><span class="line">]);</span><br></pre></td></tr></table></figure>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<nav class="pagination">
<span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><a class="page-number" href="/page/3/">3</a><a class="extend next" rel="next" href="/page/2/"><i class="fa fa-angle-right" aria-label="Nächste Seite"></i></a>
</nav>
</div>
<script>
window.addEventListener('tabs:register', () => {
let { activeClass } = CONFIG.comments;
if (CONFIG.comments.storage) {
activeClass = localStorage.getItem('comments_active') || activeClass;
}
if (activeClass) {
let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
if (activeTab) {
activeTab.click();
}
}
});
if (CONFIG.comments.storage) {
window.addEventListener('tabs:click', event => {
if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
let commentClass = event.target.classList[1];
localStorage.setItem('comments_active', commentClass);
});
}
</script>
</div>
<div class="toggle sidebar-toggle">
<span class="toggle-line toggle-line-first"></span>
<span class="toggle-line toggle-line-middle"></span>
<span class="toggle-line toggle-line-last"></span>
</div>
<aside class="sidebar">
<div class="sidebar-inner">
<ul class="sidebar-nav motion-element">
<li class="sidebar-nav-toc">
Inhaltsverzeichnis
</li>
<li class="sidebar-nav-overview">
Übersicht
</li>
</ul>
<!--noindex-->
<div class="post-toc-wrap sidebar-panel">
</div>
<!--/noindex-->
<div class="site-overview-wrap sidebar-panel">
<div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
<p class="site-author-name" itemprop="name">Iyetux</p>
<div class="site-description" itemprop="description">人不努力和咸鱼有什么区别</div>
</div>
<div class="site-state-wrap motion-element">
<nav class="site-state">
<div class="site-state-item site-state-posts">
<a href="/archives/">
<span class="site-state-item-count">25</span>
<span class="site-state-item-name">Artikel</span>
</a>
</div>
<div class="site-state-item site-state-tags">
<span class="site-state-item-count">3</span>
<span class="site-state-item-name">schlagwörter</span>
</div>
</nav>
</div>
</div>
</div>
</aside>
<div id="sidebar-dimmer"></div>
</div>
</main>
<footer class="footer">
<div class="footer-inner">
<div class="copyright">
©
<span itemprop="copyrightYear">2024</span>
<span class="with-love">
<i class="fa fa-heart"></i>
</span>
<span class="author" itemprop="copyrightHolder">Iyetux</span>
</div>
<div class="powered-by">Erstellt mit <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://muse.theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Muse</a>
</div>
</div>
</footer>
</div>
<script src="/lib/anime.min.js"></script>
<script src="/lib/velocity/velocity.min.js"></script>
<script src="/lib/velocity/velocity.ui.min.js"></script>
<script src="/js/utils.js"></script>
<script src="/js/motion.js"></script>
<script src="/js/schemes/muse.js"></script>
<script src="/js/next-boot.js"></script>
</body>
</html>