-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
1070 lines (695 loc) · 38.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
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">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title></title>
<meta name="author" content="李德东">
<meta name="description" content="记录点滴">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta property="og:site_name" content="李德东的博客"/>
<meta property="og:image" content=""/>
<link rel="icon" type="image/png" href="/favicon.png">
<link rel="alternate" href="/atom.xml" title="李德东的博客" type="application/atom+xml">
<link rel="stylesheet" href="/css/lib/materialize.min.css">
<link rel="stylesheet" href="/css/lib/font-awesome.min.css">
<link rel="stylesheet" href="/css/style.css" media="screen" type="text/css">
<link rel="stylesheet" href="/css/lib/prettify-tomorrow-night-eighties.css" type="text/css">
<!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>
<body>
<img src="/weixin_favicon.png" style="position: absolute; left: -9999px; opacity: 0; filter: alpha(opacity=0);">
<nav class="indigo">
<div class="nav-wrapper">
<a href="#" data-activates="main-menu" class="button-collapse">
<i class="fa fa-navicon"></i>
</a>
<div class="">
<a href="/" class="brand-logo hide-on-med-and-down">李德东的博客</a>
<ul class="right hide-on-med-and-down">
<li>
<a class="menu-home " href="/" >
<i class="fa fa-home "></i>
首页
</a>
</li>
<li>
<a class="menu-archive " href="/archives" >
<i class="fa fa-archive "></i>
归档
</a>
</li>
<li>
<a class="menu-category category-menu" href="javascript:;" data-activates="category-menu" >
<i class="fa fa-bookmark "></i>
分类
</a>
</li>
<li>
<a class="menu-reading " href="/reading" >
<i class="fa fa-book "></i>
读书
</a>
</li>
<li>
<a class="menu-about " href="/about" >
<i class="fa fa-user "></i>
关于
</a>
</li>
</ul>
<div>
<ul class="side-nav indigo darken-1" id="main-menu">
<li class="side-user">
<div class="row">
<div class="col s4 no-padding">
<img class="avatar-image circle responsive-img" src="http://p4pm1p21u.bkt.clouddn.com/head.jpg" alt="User Avatar">
</div>
<div class="info col s8 valign-wrapper no-padding">
<div class="valign">
<p class="name">李德东</p>
<p class="desc">Web前端/java/技术宅</p>
</div>
</div>
</div>
</li>
<li class="no-padding">
<a class="waves-effect menu-home " href="/" >
<i class="fa fa-home "></i>
首页
</a>
</li>
<li class="no-padding">
<a class="waves-effect menu-archive " href="/archives" >
<i class="fa fa-archive "></i>
归档
</a>
</li>
<li class="no-padding">
<a class="waves-effect menu-category category-menu" href="javascript:;" data-activates="category-menu" >
<i class="fa fa-bookmark "></i>
分类
</a>
</li>
<li class="no-padding">
<a class="waves-effect menu-reading " href="/reading" >
<i class="fa fa-book "></i>
读书
</a>
</li>
<li class="no-padding">
<a class="waves-effect menu-about " href="/about" >
<i class="fa fa-user "></i>
关于
</a>
</li>
</ul>
<ul class="side-nav indigo darken-1" id="category-menu">
<li class="collapse-level-0" collapse-level="0">
<a class="no-padding" href="/categories/前端/">
前端 <span class="right">4 篇</span></a>
</a>
</li>
<li class="collapse-level-1" collapse-level="1">
<a class="no-padding" href="/categories/前端/JavaScript/">
JavaScript <span class="right">1 篇</span></a>
</a>
</li>
<li class="collapse-level-1" collapse-level="1">
<a class="no-padding" href="/categories/前端/jsp/">
jsp <span class="right">1 篇</span></a>
</a>
</li>
<li class="collapse-level-0" collapse-level="0">
<a class="no-padding" href="/categories/后端/">
后端 <span class="right">1 篇</span></a>
</a>
</li>
<li class="collapse-level-1" collapse-level="1">
<a class="no-padding" href="/categories/后端/Java/">
Java <span class="right">1 篇</span></a>
</a>
</li>
<li class="collapse-level-0" collapse-level="0">
<a class="no-padding" href="/categories/数据库/">
数据库 <span class="right">5 篇</span></a>
</a>
</li>
<li class="collapse-level-1" collapse-level="1">
<a class="no-padding" href="/categories/数据库/锁/">
锁 <span class="right">1 篇</span></a>
</a>
</li>
<li class="collapse-level-0" collapse-level="0">
<a class="no-padding" href="/categories/生活/">
生活 <span class="right">1 篇</span></a>
</a>
</li>
<li class="collapse-level-1" collapse-level="1">
<a class="no-padding" href="/categories/生活/介绍/">
介绍 <span class="right">1 篇</span></a>
</a>
</li>
<li class="collapse-level-0" collapse-level="0">
<a class="no-padding" href="/categories/JAVA/">
JAVA <span class="right">1 篇</span></a>
</a>
</li>
<li class="collapse-level-1" collapse-level="1">
<a class="no-padding" href="/categories/JAVA/后台/">
后台 <span class="right">1 篇</span></a>
</a>
</li>
<li class="collapse-level-0" collapse-level="0">
<a class="no-padding" href="/categories/网络协议/">
网络协议 <span class="right">1 篇</span></a>
</a>
</li>
<li class="collapse-level-0" collapse-level="0">
<a class="no-padding" href="/categories/Web/">
Web <span class="right">1 篇</span></a>
</a>
</li>
<li class="collapse-level-1" collapse-level="1">
<a class="no-padding" href="/categories/Web/前端/">
前端 <span class="right">1 篇</span></a>
</a>
</li>
</ul>
</div>
</div>
</div>
</nav>
<div id="search" class="modal search-modal">
<div class="row">
<div class="input-field col s12">
<input id="search-input" type="text">
<label for="search-input">搜索</label>
</div>
</div>
<div id="search-result" class="search-result col s12">
</div>
</div>
<main>
<div class="slider">
<ul class="slides">
<li>
<a href="/">
<img class="slider-image" src="http://p4pm1p21u.bkt.clouddn.com/fall_leaves.jpg">
<div class="caption center-align">
<h4>成长!</h3>
<h5 class="light grey-text text-lighten-3">前进的脚步谁都挡不住.</h5>
</div>
</a>
</li>
<li>
<a href="javascript:;">
<img class="slider-image" src="http://p4pm1p21u.bkt.clouddn.com/carousel1.jpg">
<div class="caption right-align">
<h4>主角</h3>
<h5 class="light grey-text text-lighten-3">精彩的人生才会使故事更丰满.</h5>
</div>
</a>
</li>
</ul>
</div>
<div id="article-list" class="container main-container">
<article class="simple-article">
<div class="card">
<div class="card-content">
<div class="article-title">
<h1 class="indigo-link-context"><a href="/2018/07/08/前端跨域处理方式/">前端跨域处理方式</a></h1>
</div>
<time class="pink-link-context" datetime="2018-07-07T16:37:29.000Z"><a href="/2018/07/08/前端跨域处理方式/">2018-07-08</a></time>
<div class="tags-row">
<a href="/tags/跨域/" class="chip pink lighten-1">跨域</a>
<a href="/tags/cors/" class="chip pink lighten-1">cors</a>
</div>
<div class="entry pink-link-context">
<h1 id="关于跨域请求解觉方案问题"><a href="#关于跨域请求解觉方案问题" class="headerlink" title="关于跨域请求解觉方案问题"></a>关于跨域请求解觉方案问题</h1><p>关于浏览器跨域问题,项目中也遇到了,看了项目上一些代码的处理方式,感觉存在不少不大完善的地方,因此对于跨域,想好好梳理一下,但是最近一直在忙,因此周六抽出一天的时间了学习消化做了写笔记。</p>
<h2 id="跨域的概念"><a href="#跨域的概念" class="headerlink" title="跨域的概念"></a>跨域的概念</h2><p>跨域和同源问题</p>
<p>跨域实质就是跨域名、跨端口、跨协议。</p>
<p>同源就是同域名、同端口、同协议。</p>
<figure class="highlight plain"><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">假如一个网址是 http://baidu.com:8080?user=name&pwd=password</span><br><span class="line">http:// 是协议 </span><br><span class="line">baidu.com 是域名(注意:前面加上“wwww”即www.baidu.com不是域名)</span><br><span class="line">8080 是端口 </span><br><span class="line">user=name&pwd=password 是地址带的参数</span><br></pre></td></tr></table></figure>
<blockquote>
<p>引用地址 <a href="https://www.cnblogs.com/shirly77/p/6440635.html?utm_source=itdadao&utm_medium=referral" target="_blank" rel="noopener">https://www.cnblogs.com/shirly77/p/6440635.html?utm_source=itdadao&utm_medium=referral</a></p>
</blockquote>
<h2 id="跨域的解决方法"><a href="#跨域的解决方法" class="headerlink" title="跨域的解决方法"></a>跨域的解决方法</h2><p>跨域的解决方式主要有以下几种方式:1.jsonp(局限性比较大,缺点比较多,下面有具体介绍)。2.Cors 3.使用代理 4.websocket跨域</p>
</div>
</div>
<div class="card-action pink-link-context">
<a href="/2018/07/08/前端跨域处理方式/">阅读全文</a>
</ div>
</div>
</article>
<article class="simple-article">
<div class="card">
<div class="card-content">
<div class="article-title">
<h1 class="indigo-link-context"><a href="/2018/04/08/视图view/">SQL VIEW(视图)</a></h1>
</div>
<time class="pink-link-context" datetime="2018-04-08T14:08:45.000Z"><a href="/2018/04/08/视图view/">2018-04-08</a></time>
<div class="tags-row">
<a href="/tags/oracle/" class="chip pink lighten-1">oracle</a>
<a href="/tags/视图/" class="chip pink lighten-1">视图</a>
<a href="/tags/VIEW/" class="chip pink lighten-1">VIEW</a>
</div>
<div class="entry pink-link-context">
<h1 id="SQL-VIEW(视图)"><a href="#SQL-VIEW(视图)" class="headerlink" title="SQL VIEW(视图)"></a>SQL VIEW(视图)</h1><p>• SQL Increment<br>• SQL Date</p>
<ul>
<li>视图是可视化的表。</li>
<li>本章讲解如何创建、更新和删除视图。<br>SQL CREATE VIEW 语句<h2 id="什么是视图?"><a href="#什么是视图?" class="headerlink" title="什么是视图?"></a>什么是视图?</h2></li>
<li>在 SQL 中,视图是基于 SQL 语句的结果集的可视化的表。</li>
<li>视图包含行和列,就像一个真实的表。视图中的字段就是来自一个或多个数据库中的真实的表中的字段。我们可以向视图添加 SQL 函数、WHERE 以及 JOIN 语句,我们也可以提交数据,就像这些来自于某个单一的表。</li>
</ul>
<hr>
<p>注释:数据库的设计和结构不会受到视图中的函数、where 或 join 语句的影响。</p>
<hr>
</div>
</div>
<div class="card-action pink-link-context">
<a href="/2018/04/08/视图view/">阅读全文</a>
</ div>
</div>
</article>
<article class="simple-article">
<div class="card">
<div class="card-content">
<div class="article-title">
<h1 class="indigo-link-context"><a href="/2018/04/08/Object-keys方法详解/">Object.keys方法详解</a></h1>
</div>
<time class="pink-link-context" datetime="2018-04-08T13:28:12.000Z"><a href="/2018/04/08/Object-keys方法详解/">2018-04-08</a></time>
<div class="tags-row">
<a href="/tags/JS/" class="chip pink lighten-1">JS</a>
<a href="/tags/Object/" class="chip pink lighten-1">Object</a>
</div>
<div class="entry pink-link-context">
<h1 id="Object-keys方法之详解"><a href="#Object-keys方法之详解" class="headerlink" title="Object.keys方法之详解"></a>Object.keys方法之详解</h1><p>在实际开发中,我们有时需要知道对象的所有属性,原生js给我们提供了一个很好的方法:Object.keys(),该方法返回一个数组</p>
<ul>
<li>传入对象,返回属性名</li>
</ul>
</div>
</div>
<div class="card-action pink-link-context">
<a href="/2018/04/08/Object-keys方法详解/">阅读全文</a>
</ div>
</div>
</article>
<article class="simple-article">
<div class="card">
<div class="card-content">
<div class="article-title">
<h1 class="indigo-link-context"><a href="/2018/04/08/JS递归生成树形结构数据以及数据库遍历树型结构数据/">JS递归生成树形结构数据以及数据库遍历树型结构数据</a></h1>
</div>
<time class="pink-link-context" datetime="2018-04-08T08:02:44.000Z"><a href="/2018/04/08/JS递归生成树形结构数据以及数据库遍历树型结构数据/">2018-04-08</a></time>
<div class="tags-row">
<a href="/tags/JS/" class="chip pink lighten-1">JS</a>
<a href="/tags/数据库/" class="chip pink lighten-1">数据库</a>
<a href="/tags/遍历/" class="chip pink lighten-1">遍历</a>
</div>
</div>
</div>
</article>
<article class="simple-article">
<div class="card">
<div class="card-content">
<div class="article-title">
<h1 class="indigo-link-context"><a href="/2018/04/08/http和https之间的区别/">http和https之间的区别</a></h1>
</div>
<time class="pink-link-context" datetime="2018-04-08T07:44:07.000Z"><a href="/2018/04/08/http和https之间的区别/">2018-04-08</a></time>
<div class="tags-row">
<a href="/tags/http/" class="chip pink lighten-1">http</a>
<a href="/tags/https/" class="chip pink lighten-1">https</a>
<a href="/tags/网络协议/" class="chip pink lighten-1">网络协议</a>
</div>
<div class="entry pink-link-context">
<h1 id="HTTP与HTTPS的区别"><a href="#HTTP与HTTPS的区别" class="headerlink" title="HTTP与HTTPS的区别"></a>HTTP与HTTPS的区别</h1><ul>
<li>超文本传输协议HTTP协议被用于在Web浏览器和网站服务器之间传递信息,HTTP协议以明文方式发送内容,不提供任何方式的数据加密,如果攻击者截取了Web浏览器和网站服务器之间的传输报文,就可以直接读懂其中的信息,因此,HTTP协议不适合传输一些敏感信息,比如:信用卡号、密码等支付信息。</li>
<li>为了解决HTTP协议的这一缺陷,需要使用另一种协议:==安全套接字层超文本传输协议HTTPS==,为了数据传输的安全,HTTPS在HTTP的基础上加入了==SSL协议==,SSL依靠证书来验证服务器的身份,并为浏览器和服务器之间的通信加密。</li>
</ul>
</div>
</div>
<div class="card-action pink-link-context">
<a href="/2018/04/08/http和https之间的区别/">阅读全文</a>
</ div>
</div>
</article>
<article class="simple-article">
<div class="card">
<div class="card-content">
<div class="article-title">
<h1 class="indigo-link-context"><a href="/2018/03/20/数据库乐观锁和悲观锁/">数据库乐观锁和悲观锁</a></h1>
</div>
<time class="pink-link-context" datetime="2018-03-20T03:27:01.000Z"><a href="/2018/03/20/数据库乐观锁和悲观锁/">2018-03-20</a></time>
<div class="tags-row">
<a href="/tags/数据库/" class="chip pink lighten-1">数据库</a>
<a href="/tags/乐观锁/" class="chip pink lighten-1">乐观锁</a>
<a href="/tags/悲观锁/" class="chip pink lighten-1">悲观锁</a>
</div>
<div class="entry pink-link-context">
<h1 id="数据库乐观锁和悲观锁"><a href="#数据库乐观锁和悲观锁" class="headerlink" title="数据库乐观锁和悲观锁"></a>数据库乐观锁和悲观锁</h1><p>锁( locking )</p>
<p>业务逻辑的实现过程中,往往需要保证数据访问的排他性。如在金融系统的日终结算处理中,我们希望针对某个 cut-off 时间点的数据进行处理,而不希望在结算进行过程中(可能是几秒种,也可能是几个小时),数据再发生变化。此时,我们就需要通过一些机制来保证这些数据在某个操作过程中不会被外界修改,这样的机制,在这里,也就是所谓的 “ 锁 ” ,即给我们选定的目标数据上锁,使其无法被其他程序修改。</p>
<ul>
<li style="list-style: none"><input type="checkbox" checked> Hibernate 支持两种锁机制:即通常所说的 “ 悲观锁( Pessimistic Locking ) ”<br>和 “ 乐观锁( Optimistic Locking ) ” 。</li>
</ul>
</div>
</div>
<div class="card-action pink-link-context">
<a href="/2018/03/20/数据库乐观锁和悲观锁/">阅读全文</a>
</ div>
</div>
</article>
<article class="simple-article">
<div class="card">
<div class="card-content">
<div class="article-title">
<h1 class="indigo-link-context"><a href="/2018/03/16/oracle递归算法/">oracle递归算法</a></h1>
</div>
<time class="pink-link-context" datetime="2018-03-16T15:08:45.000Z"><a href="/2018/03/16/oracle递归算法/">2018-03-16</a></time>
<div class="tags-row">
<a href="/tags/oracle/" class="chip pink lighten-1">oracle</a>
<a href="/tags/递归/" class="chip pink lighten-1">递归</a>
</div>
<div class="entry pink-link-context">
<h1 id="oracle中-connect-by-prior-递归算法"><a href="#oracle中-connect-by-prior-递归算法" class="headerlink" title="oracle中 connect by prior 递归算法"></a>oracle中 connect by prior 递归算法</h1><p>Oracle中start with…connect by prior子句用法 connect by 是结构化查询中用到的,其基本语法是: </p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">select ... from tablename start with 条件1 </span><br><span class="line">connect by 条件2 </span><br><span class="line">where 条件3;</span><br></pre></td></tr></table></figure>
</div>
</div>
<div class="card-action pink-link-context">
<a href="/2018/03/16/oracle递归算法/">阅读全文</a>
</ div>
</div>
</article>
<article class="simple-article">
<div class="card">
<div class="card-content">
<div class="article-title">
<h1 class="indigo-link-context"><a href="/2018/03/16/UNION与UNION ALL的区别/">UNION与UNION ALL的区别</a></h1>
</div>
<time class="pink-link-context" datetime="2018-03-16T15:08:45.000Z"><a href="/2018/03/16/UNION与UNION ALL的区别/">2018-03-16</a></time>
<div class="tags-row">
<a href="/tags/oracle/" class="chip pink lighten-1">oracle</a>
<a href="/tags/union/" class="chip pink lighten-1">union</a>
<a href="/tags/union-all/" class="chip pink lighten-1">union all</a>
</div>
<div class="entry pink-link-context">
<h1 id="SQL语句中:UNION与UNION-ALL的区别"><a href="#SQL语句中:UNION与UNION-ALL的区别" class="headerlink" title="SQL语句中:UNION与UNION ALL的区别"></a>SQL语句中:UNION与UNION ALL的区别</h1><p>UNION用的比较多union all是直接连接,取到得是所有值,记录可能有重复 union 是取唯一值,记录没有重复 </p>
</div>
</div>
<div class="card-action pink-link-context">
<a href="/2018/03/16/UNION与UNION ALL的区别/">阅读全文</a>
</ div>
</div>
</article>
<article class="simple-article">
<div class="card">
<div class="card-content">
<div class="article-title">
<h1 class="indigo-link-context"><a href="/2018/03/16/数据库分页查询/">Oracle中分页查询语句</a></h1>
</div>
<time class="pink-link-context" datetime="2018-03-16T15:08:45.000Z"><a href="/2018/03/16/数据库分页查询/">2018-03-16</a></time>
<div class="tags-row">
<a href="/tags/oracle/" class="chip pink lighten-1">oracle</a>
<a href="/tags/分页查询/" class="chip pink lighten-1">分页查询</a>
</div>
</div>
</div>
</article>
<article class="simple-article">
<div class="card">
<div class="card-content">
<div class="article-title">
<h1 class="indigo-link-context"><a href="/2018/03/16/关于变量 Objects...objects 和Object[] objects的区别/">关于变量 Objects...objects 和Object[] objects的区别</a></h1>
</div>
<time class="pink-link-context" datetime="2018-03-16T15:08:45.000Z"><a href="/2018/03/16/关于变量 Objects...objects 和Object[] objects的区别/">2018-03-16</a></time>
<div class="tags-row">
<a href="/tags/java/" class="chip pink lighten-1">java</a>
<a href="/tags/Objects/" class="chip pink lighten-1">Objects</a>
</div>
</div>
</div>
</article>
<ul class="pagination center-align">
<li class="disabled">
<a href="/"><i class="fa fa-angle-left"></i></a>
</li>
<li class="active pink"><a href="/">1</a></li>
<li class="waves-effect"><a href="/page/2">2</a></li>
<li class="">
<a href="/page/2/"><i class="fa fa-angle-right"></i></a>
</li>
</ul>
</div>
<div class="fixed-action-btn float-sitemap">
<a class="btn-floating btn-large pink">
<i class="fa fa-caret-square-o-up"></i>
</a>
<ul>
<li><a class="btn-return-top btn-floating waves-effect green" title="回到顶部"><i class="fa fa-arrow-circle-o-up"></i></a></li>
<li><a class="btn-floating waves-effect button-collapse yellow darken-1" data-activates="main-menu" title="菜单"><i class="fa fa-navicon"></i></a></li>
</ul>
</div>
</main>
<footer class="page-footer indigo darken-1">
<div class="footer-container container">
<div class="row">
<div class="social-group col m4 s12">
<h5 class="white-text">社交</h5>
<a class="social-link" href="http://weibo.com/6052473371" target="_blank">
<i class="fa fa-2x fa-weibo"></i>
</a>
<a class="social-link" href="https://github.com/LDD123/LDD123.github.io" target="_blank">
<i class="fa fa-2x fa-github"></i>
</a>
<a class="social-link" href="/atom.xml" target="_blank">
<i class="fa fa-2x fa-rss"></i>
</a>
<script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js">
</script>
<div class="site-visitors-container white-text">
<span>
<i class="fa fa-user"></i>
<span class="busuanzi-value" id="busuanzi_value_site_uv"></span>
</span>
<span> | </span>
<span>
<i class="fa fa-eye"></i>
<span class="busuanzi-value" id="busuanzi_value_site_pv"></span>
</span>
</div>
</div>
<div class="col m8 s12">
<h5 class="white-text">友情链接</h5>
<a class="social-link" href="https://github.com/LDD123" target="_blank">Github地址</a>
</div>
</div>
</div>
<div class="footer-copyright pink-link-context">
<div class="container">
© 2018 lidedong, All rights reserved.
</div>
</div>
</footer>
<noscript>
<div class="noscript">
<p class="center-align">当前网速较慢或者你使用的浏览器不支持博客特定功能,请尝试刷新或换用Chrome、Firefox等现代浏览器</p>
</div>
</noscript>
<div class="noscript">
<p class="center-align">当前网速较慢或者你使用的浏览器不支持博客特定功能,请尝试刷新或换用Chrome、Firefox等现代浏览器</p>
</div>
<script src="/js/jquery.min.js"></script>
<script src="/js/materialize.min.js"></script>
<script>
(function($) {
$(document).ready(function() {
// 隐藏禁用javascript(针对微信内置浏览器)的提示
$('.noscript').hide();
// 图片缩放效果
var $imgs = $('img').not('.slider-image').not('.avatar-image').not('.carousel-image').not('.card-cover-image').not('.qrcode');
// 给图片加上点击放大效果(materialbox插件)
$imgs.addClass('materialboxed').each(function(i, el) {
$(this).attr('data-caption', $(this).attr('alt') || ' ');
}).materialbox();
// 优化表格的显示
$('table').each(function() {
var $table = $(this);
// 除去多行代码的情况
if ($table.find('pre').length == 0) {
$table.addClass('responsive-table striped bordered');
}
});
// 首页幻灯片
$('.slider').slider({indicators: true, full_width: true, interval: 8000});
$(".button-collapse").sideNav();
$(".category-menu").sideNav();
// 针对gallery post
$('.carousel').carousel({full_width: true});
$('.carousel-control.prev').click(function() {
$('.carousel').carousel('prev');
});
$('.carousel-control.next').click(function() {
$('.carousel').carousel('next');
});
// 文章目录
$('article').not('.simple-article').find('h1').add('h2').add('h3').add('h4').add('h5').add('h6').scrollSpy();
// 目录随屏幕滚动(防止目录过长越过footer)
var $toc = $('.toc');
var scrollTargetTop = 0;
$(window).scroll(function() {
var $activeLink = $toc.find('a.active.section');
if ($(window).scrollTop() < 100) {
scrollTargetTop = 0;
} else {
if ($activeLink[0]) {
scrollTargetTop = $activeLink.offset().top - $toc.offset().top;
}
}
$toc.css('top', '-' + scrollTargetTop + 'px');
});
// 修正文章目录的left-border颜色
var color = $('.table-of-contents-text').css('color');
$('.table-of-contents-link').css('border-left-color', color);
// 针对移动端做的优化:FAB按钮点击一下收回
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
$('.fixed-action-btn').addClass('click-to-toggle');
}
// 回到顶部
$('.btn-return-top').click(function() {
$('body, html').animate({
scrollTop: 0
}, 500);
});
// 重置读书页面的Tab标签页的颜色
$('li.tab a').hover(function() {
$(this).toggleClass('text-lighten-4');
});
$('.indicator').addClass('pink lighten-2');
// 添加new标签
$('').append('<span class="new badge pink"></span>');
// 搜索功能
$('.modal-trigger').leanModal({
// 打开搜索框时自动聚焦
ready: function() {
if ($('#search').is(":visible")) {
$('#search-input').focus();
}
}
});
var searchXml = "search.xml";
if (searchXml.length == 0) {
searchXml = "search.xml";
}
var searchPath = "/" + searchXml;
initSearch(searchPath, 'search-input', 'search-result');
});
// 初始化搜索与匹配函数
var initSearch = function(path, search_id, content_id) {
'use strict';
$.ajax({
url: path,
dataType: "xml",
success: function(xmlResponse) {
// get the contents from search data
var datas = $("entry", xmlResponse).map(function() {
return {
title: $("title", this).text(),
content: $("content", this).text(),
url: $("url", this).text()
};
}).get();
var $input = document.getElementById(search_id);
var $resultContent = document.getElementById(content_id);
$input.addEventListener('input', function() {
var str = '<ul class=\"search-result-list\">';
var keywords = this.value.trim().toLowerCase().split(/[\s\-]+/);
$resultContent.innerHTML = "";
if (this.value.trim().length <= 0) {
return;
}
// perform local searching
datas.forEach(function(data) {
var isMatch = true;
var content_index = [];
var data_title = data.title.trim().toLowerCase();
var data_content = data.content.trim().replace(/<[^>]+>/g, "").toLowerCase();
var data_url = data.url;
var index_title = -1;
var index_content = -1;
var first_occur = -1;
// only match artiles with not empty titles and contents
if (data_title != '' && data_content != '') {
keywords.forEach(function(keyword, i) {
index_title = data_title.indexOf(keyword);
index_content = data_content.indexOf(keyword);
if (index_title < 0 && index_content < 0) {
isMatch = false;
} else {
if (index_content < 0) {
index_content = 0;
}
if (i == 0) {
first_occur = index_content;
}
}
});
}
// show search results
if (isMatch) {