-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
765 lines (426 loc) · 19.6 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
<!DOCTYPE HTML>
<html >
<head>
<meta charset="UTF-8">
<title>zhuqinglian blog</title>
<meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
<meta name="author" content="zhuqinglian">
<meta property="og:type" content="website">
<meta property="og:title" content="zhuqinglian blog">
<meta property="og:url" content="http://gzzhuqinglian.github.io/index.html">
<meta property="og:site_name" content="zhuqinglian blog">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="zhuqinglian blog">
<link rel="alternative" href="/atom.xml" title="zhuqinglian blog" type="application/atom+xml">
<link rel="icon" href="/img/favicon.ico">
<link rel="apple-touch-icon" href="/img/jacman.jpg">
<link rel="apple-touch-icon-precomposed" href="/img/jacman.jpg">
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<header>
<div>
<div id="imglogo">
<a href="/"><img src="/img/logo.png" alt="zhuqinglian blog" title="zhuqinglian blog"/></a>
</div>
<div id="textlogo">
<h1 class="site-name"><a href="/" title="zhuqinglian blog">zhuqinglian blog</a></h1>
<h2 class="blog-motto"></h2>
</div>
<div class="navbar"><a class="navbutton navmobile" href="#" title="菜單">
</a></div>
<nav class="animated">
<ul>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/archives">Archives</a></li>
<li><a href="/about">About</a></li>
<li>
<form class="search" action="http://gzzhuqinglian.github.io" target="_blank">
<label>Search</label>
<input name="s" type="hidden" value= troylc.cc ><input type="text" name="q" size="30" placeholder="搜索"><br>
</form>
</li>
</ul>
</nav>
</div>
</header>
<div id="container">
<div id="main">
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2017/04/17/hbulid快捷键/" title="hbulid快捷键" itemprop="url">hbulid快捷键</a>
</h1>
<p class="article-author">By
<a href="/about" title="zhuqinglian" target="_blank" itemprop="author">zhuqinglian</a>
<p class="article-time">
<time datetime="2017-04-17T03:22:09.000Z" itemprop="datePublished"> 發表於 2017-04-17</time>
</p>
</header>
<div class="article-content">
<p>####自己搜集了一些常用的hbulid快捷方式,供自己参考</p>
<ul>
<li>搜索的常用<pre><code>文本内搜索关键字-ctrl+f
根据文本找文件-ctrl+h
根据文件名找文件->ctrl+t
</code></pre></li>
<li>常用删除<pre><code>删除当前行-->ctrl+d
删除前一个单词-->ctrl+backspace
删除后一个单词-->ctrl+delete
删除当前标签(焦点需要在所在的标签上)-->ctrl+shift+t
</code></pre></li>
<li>编辑的焦点跳转<pre><code>跳到行首-->home
跳到行末-->end
在行间跳到下一新行-->ctrl+enter
在行末跳到下一个新行-->enter
跳到下一个单词-->ctrl+->
跳到上一个单词-->ctrl+<-
</code></pre></li>
<li>选择<pre><code>选择当前标签-->ctrl+[
选择当前所有单词(每按一次增加一个选择,可以同时编辑多个选择的地方)-->ctrl+shift+a
</code></pre></li>
<li>其他<pre><code>代码前缩进-->shift+tab
代码后退空格-->tab
加上外包围-->ctrl+9
选中代码格式化(如果快捷键不可用,可以点击鼠标右键,选择代码格式化)-->ctrl+shift+f
</code></pre></li>
</ul>
<p class="article-more-link">
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
</div>
<div class="comments-count">
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2017/04/14/es6-often-use/" title="'es6-often-use'" itemprop="url">'es6-often-use'</a>
</h1>
<p class="article-author">By
<a href="/about" title="zhuqinglian" target="_blank" itemprop="author">zhuqinglian</a>
<p class="article-time">
<time datetime="2017-04-14T07:17:52.000Z" itemprop="datePublished"> 發表於 2017-04-14</time>
</p>
</header>
<div class="article-content">
<p class="article-more-link">
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
</div>
<div class="comments-count">
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2017/03/22/得到元素位置/" title="'得到元素位置'" itemprop="url">'得到元素位置'</a>
</h1>
<p class="article-author">By
<a href="/about" title="zhuqinglian" target="_blank" itemprop="author">zhuqinglian</a>
<p class="article-time">
<time datetime="2017-03-22T06:34:43.000Z" itemprop="datePublished"> 發表於 2017-03-22</time>
</p>
</header>
<div class="article-content">
<p>getBoundingClientRect()<br>它返回一个对象,其中包含了left、right、top、bottom四个属性,分别对应了该元素的左上角和右下角相对于浏览器窗口(viewport)左上角的距离。<br>所以,网页元素的相对位置就是<br> var X= this.getBoundingClientRect().left;<br> var Y =this.getBoundingClientRect().top;<br>再加上滚动距离,就可以得到绝对位置<br> var X= this.getBoundingClientRect().left+document.documentElement.scrollLeft;<br> var Y =this.getBoundingClientRect().top+document.documentElement.scrollTop;<br>目前,IE、Firefox 3.0+、Opera 9.5+都支持该方法,而Firefox 2.x、Safari、Chrome、Konqueror不支持</p>
<p class="article-more-link">
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
</div>
<div class="comments-count">
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2017/03/06/防抖动/" title="防抖动" itemprop="url">防抖动</a>
</h1>
<p class="article-author">By
<a href="/about" title="zhuqinglian" target="_blank" itemprop="author">zhuqinglian</a>
<p class="article-time">
<time datetime="2017-03-06T14:37:25.000Z" itemprop="datePublished"> 發表於 2017-03-06</time>
</p>
</header>
<div class="article-content">
<p>防抖动,通俗来讲,是不让函数执行太多,因为在dom的事件中可能短时间内触发太多次。<br>执行太多,影响性能。<br>
<p class="article-more-link">
<a href="/2017/03/06/防抖动/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
</div>
<div class="comments-count">
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2017/03/03/http-datail/" title="'http-datail'" itemprop="url">'http-datail'</a>
</h1>
<p class="article-author">By
<a href="/about" title="zhuqinglian" target="_blank" itemprop="author">zhuqinglian</a>
<p class="article-time">
<time datetime="2017-03-03T03:17:46.000Z" itemprop="datePublished"> 發表於 2017-03-03</time>
</p>
</header>
<div class="article-content">
<p>http协议是应用层协议,在这个协议中,需要我们掌握,请求request的相关知识。<br>
<p class="article-more-link">
<a href="/2017/03/03/http-datail/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
</div>
<div class="comments-count">
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2017/03/02/css常用收集/" title="css常用收集" itemprop="url">css常用收集</a>
</h1>
<p class="article-author">By
<a href="/about" title="zhuqinglian" target="_blank" itemprop="author">zhuqinglian</a>
<p class="article-time">
<time datetime="2017-03-02T09:22:23.000Z" itemprop="datePublished"> 發表於 2017-03-02</time>
</p>
</header>
<div class="article-content">
<p>这是一些自己常用的一些css收集,后续将持续添加<br>
<p class="article-more-link">
<a href="/2017/03/02/css常用收集/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
</div>
<div class="comments-count">
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2017/02/27/css3-transform-demo/" title="'css3-transform-demo'" itemprop="url">'css3-transform-demo'</a>
</h1>
<p class="article-author">By
<a href="/about" title="zhuqinglian" target="_blank" itemprop="author">zhuqinglian</a>
<p class="article-time">
<time datetime="2017-02-27T08:44:44.000Z" itemprop="datePublished"> 發表於 2017-02-27</time>
</p>
</header>
<div class="article-content">
<h1 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h1><p>随着web的发展,对界面的视觉要求越来越高,在页面中增加动画,是一种特别好的一件事情,但是我对动画属性掌握的不是那么好,特别的抽时间去学习和总结。</p>
<p>1.css的动画基本属性的学习<br>2.css的动画的小demo的展现<br>3.市场上现有的动画的框架的分析</p>
<p class="article-more-link">
<a href="/2017/02/27/css3-transform-demo/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
</div>
<div class="comments-count">
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2017/02/27/common-amd-cmd/" title="'common-amd-cmd'" itemprop="url">'common-amd-cmd'</a>
</h1>
<p class="article-author">By
<a href="/about" title="zhuqinglian" target="_blank" itemprop="author">zhuqinglian</a>
<p class="article-time">
<time datetime="2017-02-27T08:44:44.000Z" itemprop="datePublished"> 發表於 2017-02-27</time>
</p>
</header>
<div class="article-content">
<h1 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h1><p>任何代码,我们都想尽可能的复用,这里就谈到了模块化的概念,在js的模块定义中,又3个东西需要我们掌握。</p>
<p>1.commonjs 为了解决代码复用的问题,主要用于后端,提出了模块化的概念。<br>2.amd(异步加载规范),为了解决浏览器的模块复用的问题,代表requirejs<br>3.cmd 为了解决浏览器缓慢执行的问题,代表seajs</p>
<p class="article-more-link">
<a href="/2017/02/27/common-amd-cmd/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
</div>
<div class="comments-count">
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2017/02/24/hello-world/" title="Hello World" itemprop="url">Hello World</a>
</h1>
<p class="article-author">By
<a href="/about" title="zhuqinglian" target="_blank" itemprop="author">zhuqinglian</a>
<p class="article-time">
<time datetime="2017-02-24T09:52:31.563Z" itemprop="datePublished"> 發表於 2017-02-24</time>
</p>
</header>
<div class="article-content">
<p>Welcome to <a href="https://hexo.io/" target="_blank" rel="external">Hexo</a>! This is your very first post. Check <a href="https://hexo.io/docs/" target="_blank" rel="external">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a href="https://hexo.io/docs/troubleshooting.html" target="_blank" rel="external">troubleshooting</a> or you can ask me on <a href="https://github.com/hexojs/hexo/issues" target="_blank" rel="external">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><div class="line">1</div></pre></td><td class="code"><pre><div class="line">$ hexo new <span class="string">"My New Post"</span></div></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/writing.html" target="_blank" rel="external">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><div class="line">1</div></pre></td><td class="code"><pre><div class="line">$ hexo server</div></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/server.html" target="_blank" rel="external">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><div class="line">1</div></pre></td><td class="code"><pre><div class="line">$ hexo generate</div></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/generating.html" target="_blank" rel="external">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><div class="line">1</div></pre></td><td class="code"><pre><div class="line">$ hexo deploy</div></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/deployment.html" target="_blank" rel="external">Deployment</a></p>
<p class="article-more-link">
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
</div>
<div class="comments-count">
</div>
</footer>
</article>
</div>
<div class="openaside"><a class="navbutton" href="#" title="顯示側邊欄"></a></div>
<div id="asidepart">
<div class="closeaside"><a class="closebutton" href="#" title="隱藏側邊欄"></a></div>
<aside class="clearfix">
<div class="linkslist">
<p class="asidetitle">友情鏈接</p>
<ul>
<li>
<a href="https://gold.xitu.io/" target="_blank" title="一个面向程序员交流分享的社区">码农圈</a>
</li>
</ul>
</div>
<div class="rsspart">
<a href="/atom.xml" target="_blank" title="rss">RSS 訂閱</a>
</div>
<div class="weiboshow">
<p class="asidetitle">新浪微博</p>
<iframe width="100%" height="119" class="share_self" frameborder="0" scrolling="no" src="http://widget.weibo.com/weiboshow/index.php?language=&width=0&height=119&fansRow=2&ptype=1&speed=0&skin=9&isTitle=1&noborder=1&isWeibo=0&isFans=0&uid=null&verifier=&dpc=1"></iframe>
</div>
</aside>
</div>
</div>
<footer><div id="footer" >
<div class="line">
<span></span>
<div class="author"></div>
</div>
<section class="info">
<p> Hello ,I'm zhuqinglian Page in hangzhou. <br/>
This is my blog,believe it or not.</p>
</section>
<div class="social-font" class="clearfix">
</div>
<!--<p class="copyright">
Powered by <a href="http://hexo.io" target="_blank" title="hexo">hexo</a> and Theme by <a href="https://github.com/wuchong/jacman" target="_blank" title="Jacman">Jacman</a> © 2017
<a href="/about" target="_blank" title="zhuqinglian">zhuqinglian</a>
</p>-->
</div>
</footer>
<script src="/js/jquery-2.0.3.min.js"></script>
<script src="/js/jquery.imagesloaded.min.js"></script>
<script src="/js/gallery.js"></script>
<script src="/js/jquery.qrcode-0.12.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.navbar').click(function(){
$('header nav').toggleClass('shownav');
});
var myWidth = 0;
function getSize(){
if( typeof( window.innerWidth ) == 'number' ) {
myWidth = window.innerWidth;
} else if( document.documentElement && document.documentElement.clientWidth) {
myWidth = document.documentElement.clientWidth;
};
};
var m = $('#main'),
a = $('#asidepart'),
c = $('.closeaside'),
o = $('.openaside');
c.click(function(){
a.addClass('fadeOut').css('display', 'none');
o.css('display', 'block').addClass('fadeIn');
m.addClass('moveMain');
});
o.click(function(){
o.css('display', 'none').removeClass('beforeFadeIn');
a.css('display', 'block').removeClass('fadeOut').addClass('fadeIn');
m.removeClass('moveMain');
});
$(window).scroll(function(){
o.css("top",Math.max(80,260-$(this).scrollTop()));
});
$(window).resize(function(){
getSize();
if (myWidth >= 1024) {
$('header nav').removeClass('shownav');
}else{
m.removeClass('moveMain');
a.css('display', 'block').removeClass('fadeOut');
o.css('display', 'none');
}
});
});
</script>
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css" media="screen" type="text/css">
<script src="/fancybox/jquery.fancybox.pack.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.article-content').each(function(i){
$(this).find('img').each(function(){
if ($(this).parent().hasClass('fancybox')) return;
var alt = this.alt;
if (alt) $(this).after('<span class="caption">' + alt + '</span>');
$(this).wrap('<a href="' + this.src + '" title="' + alt + '" class="fancybox"></a>');
});
$(this).find('.fancybox').each(function(){
$(this).attr('rel', 'article' + i);
});
});
if($.fancybox){
$('.fancybox').fancybox();
}
});
</script>
<!-- Analytics Begin -->
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?e6d1f421bbc9962127a50488f9ed37d1";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<!-- Analytics End -->
<!-- Totop Begin -->
<div id="totop">
<a title="返回頂部"><img src="/img/scrollup.png"/></a>
</div>
<script src="/js/totop.js"></script>
<!-- Totop End -->
<!-- MathJax Begin -->
<!-- mathjax config similar to math.stackexchange -->
<!-- MathJax End -->
<!-- Tiny_search Begin -->
<!-- Tiny_search End -->
</body>
</html>