-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
1000 lines (601 loc) · 30.3 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>空脑壳</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="icon" type="image/x-icon" href="https://myblog-static.oss-cn-beijing.aliyuncs.com/favor-icon/mylogo.png">
<meta name="keywords" content="雷雷雷,空脑壳,前端,HTML,CSS,JS,生活" />
<meta name="google-site-verification" content="pTRbturh_lAK5OIXLwAO7OKRMaEgSX2MtqqFrk1AMRM" />
<meta name="baidu-site-verification" content="vyp41u64K8" />
<meta name="description" content="Over the mountains, mountains.">
<meta property="og:type" content="website">
<meta property="og:title" content="空脑壳">
<meta property="og:url" content="http://hi.thisisray.me/index.html">
<meta property="og:site_name" content="空脑壳">
<meta property="og:description" content="Over the mountains, mountains.">
<meta property="og:locale" content="en">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="空脑壳">
<meta name="twitter:description" content="Over the mountains, mountains.">
<link rel="alternate" href="/atom.xml" title="空脑壳" type="application/atom+xml">
<link rel="apple-touch-icon" href="/https://myblog-static.oss-cn-beijing.aliyuncs.com/favor-icon/avatar.jpg">
<link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans|Montserrat:700" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Roboto:400,300,300italic,400italic" rel="stylesheet" type="text/css">
<link href="//cdn.bootcss.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">
<style type="text/css">
@font-face{font-family:futura-pt;src:url(https://use.typekit.net/af/9749f0/00000000000000000001008f/27/l?subset_id=2&fvd=n5) format("woff2");font-weight:500;font-style:normal;}
@font-face{font-family:futura-pt;src:url(https://use.typekit.net/af/90cf9f/000000000000000000010091/27/l?subset_id=2&fvd=n7) format("woff2");font-weight:500;font-style:normal;}
@font-face{font-family:futura-pt;src:url(https://use.typekit.net/af/8a5494/000000000000000000013365/27/l?subset_id=2&fvd=n4) format("woff2");font-weight:lighter;font-style:normal;}
@font-face{font-family:futura-pt;src:url(https://use.typekit.net/af/d337d8/000000000000000000010095/27/l?subset_id=2&fvd=i4) format("woff2");font-weight:400;font-style:italic;}</style>
<link rel="stylesheet" href="/css/style.css">
<script src="/js/jquery-3.1.1.min.js"></script>
<script src="/js/bootstrap.js"></script>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="/css/bootstrap.css" >
<link rel="stylesheet" href="/css/home.css" >
<link rel="stylesheet" href="/css/vdonate.css" >
</head>
<a href="https://github.com/SuperRay3"><img style="z-index: 100;position: absolute; top: 0; left: 0; border: 0;" src="https://camo.githubusercontent.com/c6625ac1f3ee0a12250227cf83ce904423abf351/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f6c6566745f677261795f3664366436642e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_left_gray_6d6d6d.png"></a>
<canvas id="canvas" style="z-index: 1; position: fixed; top:0; left: 0;"></canvas>
<script src="/js/canvas-bg.js"></script>
<body>
<header id="header">
<!-- 背景图模式 -->
<div id="intrologo" class="intro-logo" style="background-position:center; background-repeat:no-repeat; background-image: url(); background-size: auto 100%;">
<!-- Support rolling -->
<!-- Don't rolling -->
<script>
var imgUrls = "https://myblog-static.oss-cn-beijing.aliyuncs.com/index-banner/js-rock.gif".split(",");
var random = Math.floor((Math.random() * imgUrls.length ));
if (imgUrls[random].startsWith('http') || imgUrls[random].indexOf('://') >= 0) {
document.getElementById("intrologo").style.backgroundImage='url(' + imgUrls[random] + ')';
} else {
document.getElementById("intrologo").style.backgroundImage='url(/' + imgUrls[random] + ')';
}
</script>
<canvas width="100%" height="100%"></canvas>
<script>
var c = document.getElementsByTagName('canvas')[0],
x = c.getContext('2d'),
w = window.innerWidth,
h = window.innerHeight,
pr = window.devicePixelRatio || 1,
f = 90,
q,
m = Math,
r = 0,
u = m.PI*2,
v = m.cos,
z = m.random
c.width = w*pr
c.height = h*pr
x.scale(pr, pr)
x.globalAlpha = 0.6
<!-- 折线Polyline背景 -->
</script>
<div id="homelogo" class="homelogo" style="background: rgba(255,255,255,1);">
<div class="homelogoback" style="border: 1px solid #404040;" >
<h1><a href="#content" id="logo">空脑壳</a></h1>
<h3>Over the mountains, mountains.</h3>
<h5>雷雷雷</h5>
<!-- <p><a href="https://github.com/iTimeTraveler" target="_blank">Github</a></p> -->
</div>
</div>
</div>
<!-- 自适应主页背景大图 -->
<script>
var img = new Image();
var intrologodiv = document.getElementById("intrologo");
img.src = intrologodiv.style.backgroundImage.replace('url(','').replace(')','').replace(/\"/gi, "");
img.onload=function(){
if (img.width / img.height <= document.body.clientWidth / document.body.clientHeight) {
intrologodiv.style.backgroundSize = "100% auto";
} else {
intrologodiv.style.backgroundSize = "auto 100%";
}
};
</script>
<!-- home_logo_image居中 -->
<script>
var homelogodiv = document.getElementById("homelogo");
if (document.all.homelogo.offsetWidth > document.body.clientWidth) {
homelogodiv.style.width = document.body.clientWidth + "px";
homelogodiv.style.marginLeft = document.body.clientWidth * -0.5 + "px";
} else {
homelogodiv.style.width = homelogodiv.clientWidth + "px";
homelogodiv.style.marginLeft = (homelogodiv.clientWidth) * -0.5 + "px";
}
</script>
<div class="intro-navigate">
<p class="navigater-list">
<a id="beautifont" class="main-nav-link" href="/">Home</a>
<a id="beautifont" class="main-nav-link" href="/archives">Archives</a>
<a id="beautifont" class="main-nav-link" href="/categories">Categories</a>
<a id="beautifont" class="main-nav-link" href="/tags">Tags</a>
</p>
</div>
</header>
<div id="container">
<div id="wrap">
<div id="content" class="outer">
<section id="main" style="float:none;">
<article id="post-Mac 环境下为通过 homebrew 安装的 git 添加指令自动补全功能" class="article article-type-post article-home-true" itemscope itemprop="blogPost" >
<div id="articleInner" class="article-inner">
<header class="article-header">
<h1 class="thumb" itemprop="name">
<a class="article-title" href="/Mac 环境下为通过 homebrew 安装的 git 添加指令自动补全功能.html">Mac 环境下为通过 homebrew 安装的 git 添加指令自动补全功能</a>
</h1>
</header>
<div class="article-meta">
<a href="/Mac 环境下为通过 homebrew 安装的 git 添加指令自动补全功能.html" class="article-date">
<time datetime="2018-06-29T07:45:33.000Z" itemprop="datePublished">2018-06-29</time>
</a>
<a class="article-category-link" href="/categories/烂笔头/">烂笔头</a>
</div>
<div class="article-count">
<div class="count-wrapper">
<span class="post-count">本文共 122 字</span>
<span class="post-count">预计花费 1 分钟</span>
</div>
</div>
<div class="article-entry" itemprop="articleBody">
<blockquote>
<p>本方法目前只针对通过 <code>homebrew</code> 安装的 <code>git</code>。</p>
</blockquote>
<!--
本方法目前只针对通过 homebrew 安装的 git。
使用 homebrew 安装 git bash-completion如果机子还未安装 homebrew,打开终端并输入下面这条命令:
1/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/insta...... -->
<p class="article-more-link">
<a href="/Mac 环境下为通过 homebrew 安装的 git 添加指令自动补全功能.html#more">Read More</a>
</p>
</div>
<footer class="article-footer">
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/git/">git</a></li></ul>
</footer>
</div>
</article>
<!-- Table of Contents -->
<article id="post-Javascript-词法作用域和动态作用域" class="article article-type-post article-home-true" itemscope itemprop="blogPost" >
<div id="articleInner" class="article-inner">
<header class="article-header">
<h1 class="thumb" itemprop="name">
<a class="article-title" href="/Javascript-词法作用域和动态作用域.html">Javascript 词法作用域和动态作用域</a>
</h1>
</header>
<div class="article-meta">
<a href="/Javascript-词法作用域和动态作用域.html" class="article-date">
<time datetime="2018-05-28T02:24:28.000Z" itemprop="datePublished">2018-05-28</time>
</a>
<a class="article-category-link" href="/categories/烂笔头/">烂笔头</a>
</div>
<div class="article-count">
<div class="count-wrapper">
<span class="post-count">本文共 54 字</span>
<span class="post-count">预计花费 1 分钟</span>
</div>
</div>
<div class="article-entry" itemprop="articleBody">
<a id="more"></a>
<h2 id="作用域(scope)"><a href="#作用域(scope)" class="headerlink" title="作用域(scope)"></a>作用域(scope)</h2><ul>
<li><p>作用域是 <strong>定义变量的区域</strong>, 规定了如何查找变量(即正在执行的代码对变量的访问权限)</p>
</li>
<li><p>Javascript 采用 <strong>词法作用域</strong>(即 <strong><em>静态作用域</em></strong>)</p>
</li>
</ul>
<p>##</p>
</div>
<footer class="article-footer">
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/javascript/">javascript</a></li></ul>
</footer>
</div>
</article>
<!-- Table of Contents -->
<article id="post-译-何时-merge-与何时-rebase" class="article article-type-post article-home-true" itemscope itemprop="blogPost" >
<div id="articleInner" class="article-inner">
<header class="article-header">
<h1 class="thumb" itemprop="name">
<a class="article-title" href="/译-何时-merge-与何时-rebase.html">[译] 何时 merge 与何时 rebase</a>
</h1>
</header>
<div class="article-meta">
<a href="/译-何时-merge-与何时-rebase.html" class="article-date">
<time datetime="2018-05-22T03:35:49.000Z" itemprop="datePublished">2018-05-22</time>
</a>
<a class="article-category-link" href="/categories/烂笔头/">烂笔头</a>
</div>
<div class="article-count">
<div class="count-wrapper">
<span class="post-count">本文共 0 字</span>
<span class="post-count">预计花费 1 分钟</span>
</div>
</div>
<div class="article-entry" itemprop="articleBody">
</div>
<footer class="article-footer">
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/git/">git</a></li></ul>
</footer>
</div>
</article>
<!-- Table of Contents -->
<article id="post-各终端-Terminal-添加-git-分支名称" class="article article-type-post article-home-true" itemscope itemprop="blogPost" >
<div id="articleInner" class="article-inner">
<header class="article-header">
<h1 class="thumb" itemprop="name">
<a class="article-title" href="/各终端-Terminal-添加-git-分支名称.html">各终端 Terminal 添加 git 分支名称</a>
</h1>
</header>
<div class="article-meta">
<a href="/各终端-Terminal-添加-git-分支名称.html" class="article-date">
<time datetime="2018-04-27T09:39:51.000Z" itemprop="datePublished">2018-04-27</time>
</a>
<a class="article-category-link" href="/categories/烂笔头/">烂笔头</a>
</div>
<div class="article-count">
<div class="count-wrapper">
<span class="post-count">本文共 190 字</span>
<span class="post-count">预计花费 1 分钟</span>
</div>
</div>
<div class="article-entry" itemprop="articleBody">
<blockquote>
<p>在终端进行 git 操作的时候,难免会进行分支的切换。切来切去的就会忘记当前所在的分支了。下面我们就在终端中加入 git 的分支信息。</p>
</blockquote>
<!--
在终端进行 git 操作的时候,难免会进行分支的切换。切来切去的就会忘记当前所在的分支了。下面我们就在终端中加入 git 的分支信息。
Mac OS在 ~/.bash_profile 文件中添加以下代码:
12345# Show current git branch nameparse_git_branch() { git branch 2> /dev/null ...... -->
<p class="article-more-link">
<a href="/各终端-Terminal-添加-git-分支名称.html#more">Read More</a>
</p>
</div>
<footer class="article-footer">
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/git/">git</a></li></ul>
</footer>
</div>
</article>
<!-- Table of Contents -->
<article id="post-Angular-Directive" class="article article-type-post article-home-true" itemscope itemprop="blogPost" >
<div id="articleInner" class="article-inner">
<header class="article-header">
<h1 class="thumb" itemprop="name">
<a class="article-title" href="/Angular-Directive.html">Angular Directive</a>
</h1>
</header>
<div class="article-meta">
<a href="/Angular-Directive.html" class="article-date">
<time datetime="2018-04-27T05:54:54.000Z" itemprop="datePublished">2018-04-27</time>
</a>
<a class="article-category-link" href="/categories/烂笔头/">烂笔头</a>
</div>
<div class="article-count">
<div class="count-wrapper">
<span class="post-count">本文共 482 字</span>
<span class="post-count">预计花费 2 分钟</span>
</div>
</div>
<div class="article-entry" itemprop="articleBody">
<blockquote>
<p>翻译自 <a href="https://code.angularjs.org/1.5.8/docs/guide/directive" target="_blank" rel="noopener">Directives</a></p>
</blockquote>
<!--
翻译自 Directives
隔离指令的作用域(scope)我们上面的 myCustomer 指令已经很棒了,但是它有个致命的缺陷:只能在给定的作用域里使用它一次。
上述的缺陷就导致了需要去额外创建多个不同的 controller 来达到复用指令的目的。这显然不是好的解决方案。
我们想要做到的是将外部作用域与内部的作用域分离,然后将外部指令映射到内部指令上。这就用到了指令的 scope...... -->
<p class="article-more-link">
<a href="/Angular-Directive.html#more">Read More</a>
</p>
</div>
<footer class="article-footer">
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/AngularJS/">AngularJS</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/javascript/">javascript</a></li></ul>
</footer>
</div>
</article>
<!-- Table of Contents -->
<article id="post-webpack-series" class="article article-type-post article-home-true" itemscope itemprop="blogPost" >
<div id="articleInner" class="article-inner">
<header class="article-header">
<h1 class="thumb" itemprop="name">
<a class="article-title" href="/webpack-series.html">webpack series</a>
</h1>
</header>
<div class="article-meta">
<a href="/webpack-series.html" class="article-date">
<time datetime="2018-04-24T13:46:57.000Z" itemprop="datePublished">2018-04-24</time>
</a>
<a class="article-category-link" href="/categories/烂笔头/">烂笔头</a>
</div>
<div class="article-count">
<div class="count-wrapper">
<span class="post-count">本文共 266 字</span>
<span class="post-count">预计花费 1 分钟</span>
</div>
</div>
<div class="article-entry" itemprop="articleBody">
<blockquote>
<p>买了本掘金小册 《使用 webpack 定制前端开发环境》,决定跟着学一遍 webpack。在此不定期打卡记录一下。</p>
</blockquote>
<!--
买了本掘金小册 《使用 webpack 定制前端开发环境》,决定跟着学一遍 webpack。在此不定期打卡记录一下。
webpack 的概念和基础使用loaderwebpack 使用 loader 将不同格式的文件转换为 webpack 所支持的 模块。
支撑着 webpack 处理文件的多样性。
plugin用于处理 loader 功能以外的其他任务,例如: 压缩 JS
webpac...... -->
<p class="article-more-link">
<a href="/webpack-series.html#more">Read More</a>
</p>
</div>
<footer class="article-footer">
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/webpack/">webpack</a></li></ul>
</footer>
</div>
</article>
<!-- Table of Contents -->
<article id="post-Dive-into-FE-router" class="article article-type-post article-home-true" itemscope itemprop="blogPost" >
<div id="articleInner" class="article-inner">
<header class="article-header">
<h1 class="thumb" itemprop="name">
<a class="article-title" href="/Dive-into-FE-router.html">Dive into FE-router</a>
</h1>
</header>
<div class="article-meta">
<a href="/Dive-into-FE-router.html" class="article-date">
<time datetime="2018-04-24T09:57:31.000Z" itemprop="datePublished">2018-04-24</time>
</a>
<a class="article-category-link" href="/categories/烂笔头/">烂笔头</a>
</div>
<div class="article-count">
<div class="count-wrapper">
<span class="post-count">本文共 0 字</span>
<span class="post-count">预计花费 1 分钟</span>
</div>
</div>
<div class="article-entry" itemprop="articleBody">
</div>
<footer class="article-footer">
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/FE-router/">FE-router</a></li></ul>
</footer>
</div>
</article>
<!-- Table of Contents -->
<article id="post-AngularJS-Service、Factory、Providers" class="article article-type-post article-home-true" itemscope itemprop="blogPost" >
<div id="articleInner" class="article-inner">
<header class="article-header">
<h1 class="thumb" itemprop="name">
<a class="article-title" href="/AngularJS-Service、Factory、Providers.html">AngularJS: Service、Factory、Provider</a>
</h1>
</header>
<div class="article-meta">
<a href="/AngularJS-Service、Factory、Providers.html" class="article-date">
<time datetime="2018-04-24T00:49:12.000Z" itemprop="datePublished">2018-04-24</time>
</a>
<a class="article-category-link" href="/categories/烂笔头/">烂笔头</a>
</div>
<div class="article-count">
<div class="count-wrapper">
<span class="post-count">本文共 466 字</span>
<span class="post-count">预计花费 3 分钟</span>
</div>
</div>
<div class="article-entry" itemprop="articleBody">
<blockquote>
<p>最近在接触 <code>AngularJS</code>, 被晦涩难懂的各种概念搞得头疼脑涨。<code>Service</code>、<code>Factory</code>、<code>Provider</code> 就是其中几个。</p>
</blockquote>
<!--
最近在接触 AngularJS, 被晦涩难懂的各种概念搞得头疼脑涨。Service、Factory、Provider 就是其中几个。
FactorySyntax: module.factory('factoryName', function)
Result: the value that is returned by invoking the function refe...... -->
<p class="article-more-link">
<a href="/AngularJS-Service、Factory、Providers.html#more">Read More</a>
</p>
</div>
<footer class="article-footer">
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/AngularJS/">AngularJS</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/javascript/">javascript</a></li></ul>
</footer>
</div>
</article>
<!-- Table of Contents -->
<article id="post-数组和它的方法们" class="article article-type-post article-home-true" itemscope itemprop="blogPost" >
<div id="articleInner" class="article-inner">
<header class="article-header">
<h1 class="thumb" itemprop="name">
<a class="article-title" href="/数组和它的方法们.html">数组和它的方法们</a>
</h1>
</header>
<div class="article-meta">
<a href="/数组和它的方法们.html" class="article-date">
<time datetime="2018-03-11T06:22:00.000Z" itemprop="datePublished">2018-03-11</time>
</a>
<a class="article-category-link" href="/categories/烂笔头/">烂笔头</a>
</div>
<div class="article-count">
<div class="count-wrapper">
<span class="post-count">本文共 566 字</span>
<span class="post-count">预计花费 2 分钟</span>
</div>
</div>
<div class="article-entry" itemprop="articleBody">
<blockquote>
<p>认识一下数组和它的朋友们</p>
</blockquote>
<!--
认识一下数组和它的朋友们
全家福总体上可将方法分为两大类: 改变原数组(mutator methods) 和 不变原数组(accessor methods)
Mutator methods
copyWithin: 复制指定位置的元素到指定位置,返回修改过后的数组
fill 用指定元素替换指定位置元素, 返回修改过后的数组
pop 移除最后一个元素,并返回它
push 数组尾部追...... -->
<p class="article-more-link">
<a href="/数组和它的方法们.html#more">Read More</a>
</p>
</div>
<footer class="article-footer">
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/javascript/">javascript</a></li></ul>
</footer>
</div>
</article>
<!-- Table of Contents -->
<article id="post-面试中遇到的问题" class="article article-type-post article-home-true" itemscope itemprop="blogPost" >
<div id="articleInner" class="article-inner">
<header class="article-header">
<h1 class="thumb" itemprop="name">
<a class="article-title" href="/面试中遇到的问题.html">面试中遇到的问题</a>
</h1>
</header>
<div class="article-meta">
<a href="/面试中遇到的问题.html" class="article-date">
<time datetime="2018-03-11T06:12:31.000Z" itemprop="datePublished">2018-03-11</time>
</a>
<a class="article-category-link" href="/categories/烂笔头/">烂笔头</a>
</div>
<div class="article-count">
<div class="count-wrapper">
<span class="post-count">本文共 516 字</span>
<span class="post-count">预计花费 2 分钟</span>
</div>
</div>
<div class="article-entry" itemprop="articleBody">
<blockquote>
<p>收集一些面试中的问题,变得更强。</p>
</blockquote>
<!--
收集一些面试中的问题,变得更强。
数组都有哪些方法?篇幅有点长, 单开一篇文章。 ➡️ 数组和它的方法们
官方文档
文中另提到利用数组模拟队列
数组处理
将字符串改写为驼峰命名方式。例如: 输入 'get_user_by_id', 输出 getUserById
1234567891011121314function transfor (str) {...... -->
<p class="article-more-link">
<a href="/面试中遇到的问题.html#more">Read More</a>
</p>
</div>
<footer class="article-footer">
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/job-interview/">job interview</a></li></ul>
</footer>
</div>
</article>
<!-- Table of Contents -->
<nav id="page-nav">
<span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><a class="page-number" href="/page/3/">3</a><a class="page-number" href="/page/4/">4</a><a class="extend next" rel="next" href="/page/2/">Next »</a>
</nav>
</section>
</div>
<div align="center" style="margin-top: 30px;"><hr class="hr" style="margin:0px; height:3px;"></div>
<footer id="footer">
<div class="container">
<div class="row">
<!-- <p> Powered by <a href="http://hexo.io/" target="_blank">Hexo</a> and <a href="https://github.com/iTimeTraveler/hexo-theme-hiker" target="_blank">Hexo-theme-hiker</a> </p> -->
<p id="copyRightEn">Copyright © 2017 - 2018 空脑壳 All Rights Reserved.</p>
<p>冀ICP备17022284号</p>
</div>
</div>
</footer>
<!-- min height -->
<script>
var wrapdiv = document.getElementById("wrap");
var contentdiv = document.getElementById("content");
var allheader = document.getElementById("allheader");
wrapdiv.style.minHeight = document.body.offsetHeight + "px";
if (allheader != null) {
contentdiv.style.minHeight = document.body.offsetHeight - allheader.offsetHeight - document.getElementById("footer").offsetHeight + "px";
} else {
contentdiv.style.minHeight = document.body.offsetHeight - document.getElementById("footer").offsetHeight + "px";
}
</script>
</div>
<!-- <nav id="mobile-nav">
<a href="/" class="mobile-nav-link">Home</a>
<a href="/archives" class="mobile-nav-link">Archives</a>
<a href="/categories" class="mobile-nav-link">Categories</a>
<a href="/tags" class="mobile-nav-link">Tags</a>
</nav> -->
<!-- mathjax config similar to math.stackexchange -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
processEscapes: true
}
});
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
}
});
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Queue(function() {
var all = MathJax.Hub.getAllJax(), i;
for(i=0; i < all.length; i += 1) {
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css">
<script src="/fancybox/jquery.fancybox.pack.js"></script>
<script src="/js/canvas-bg.js"></script>
<script src="/js/scripts.js"></script>
<script src="/js/home.js"></script>
</div>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title" id="myModalLabel">设置</h2>
</div>
<hr style="margin-top:0px; margin-bottom:0px; width:80%; border-top: 3px solid #000;">
<hr style="margin-top:2px; margin-bottom:0px; width:80%; border-top: 1px solid #000;">
<div class="modal-body">
<div style="margin:6px;">
<a data-toggle="collapse" data-parent="#accordion" href="#collapseOne" onclick="javascript:setFontSize();" aria-expanded="true" aria-controls="collapseOne">
正文字号大小
</a>
</div>
<div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
<div class="panel-body">
您已调整页面字体大小
</div>
</div>
<div style="margin:6px;">
<a data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" onclick="javascript:setBackground();" aria-expanded="true" aria-controls="collapseTwo">
夜间护眼模式
</a>
</div>
<div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
<div class="panel-body">
夜间模式已经开启,再次单击按钮即可关闭
</div>
</div>
<div>
<a data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="true" aria-controls="collapseThree"> 关 于 </a>
</div>
<div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
<div class="panel-body">
空脑壳
</div>
<div class="panel-body">
Copyright © 2018 雷雷雷 All Rights Reserved.
</div>
</div>
</div>
<hr style="margin-top:0px; margin-bottom:0px; width:80%; border-top: 1px solid #000;">
<hr style="margin-top:2px; margin-bottom:0px; width:80%; border-top: 3px solid #000;">
<div class="modal-footer">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
</div>
</div>
</div>
<a id="rocket" href="#top" class=""></a>
<script type="text/javascript" src="/js/totop.js?v=1.0.0" async=""></script>
</body>
</html>