-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
691 lines (437 loc) · 32.7 KB
/
index.html
File metadata and controls
691 lines (437 loc) · 32.7 KB
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
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>lucky sky</title>
<meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
<meta name="author" content="funny99">
<meta name="description" content="funny99 | web前端 | 生活 | 感悟">
<meta property="og:type" content="website">
<meta property="og:title" content="lucky sky">
<meta property="og:url" content="http://funny99.github.io/index.html">
<meta property="og:site_name" content="lucky sky">
<meta property="og:description" content="funny99 | web前端 | 生活 | 感悟">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="lucky sky">
<meta name="twitter:description" content="funny99 | web前端 | 生活 | 感悟">
<link rel="alternative" href="/atom.xml" title="lucky sky" 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="lucky sky" title="lucky sky"/></a>
</div>
<div id="textlogo">
<h1 class="site-name"><a href="/" title="lucky sky">lucky sky</a></h1>
<h2 class="blog-motto">You know what you want to change</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="/suoyin">index</a></li>
<li><a href="/about">About</a></li>
<li>
<form class="search" action="//google.com/search" method="get" accept-charset="utf-8">
<label>Search</label>
<input type="search" id="search" name="q" autocomplete="off" maxlength="20" placeholder="搜索" />
<input type="hidden" name="q" value="site:funny99.github.io">
</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="/2016/05/23/js奇遇/" title="js奇遇" itemprop="url">js奇遇</a>
</h1>
<p class="article-author">By
<a href="/about" title="funny99" target="_blank" itemprop="author">funny99</a>
<p class="article-time">
<time datetime="2016-05-23T15:34:42.000Z" itemprop="datePublished"> 发表于 2016-05-23</time>
</p>
</header>
<div class="article-content">
<h1 id="js数组拷贝"><a href="#js数组拷贝" class="headerlink" title="js数组拷贝"></a>js数组拷贝</h1><p>1、 浅拷贝.一个数组的修改会影响到另一个<br><figure class="highlight bash"><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></pre></td><td class="code"><pre><span class="line">var a = [1, 2, 3, 4],</span><br><span class="line"> b = a;</span><br><span class="line">b[2] = 0;</span><br><span class="line">console.log(a, b);</span><br></pre></td></tr></table></figure></p>
<blockquote>
<p>[1, 2, 0, 4] [1, 2, 0, 4] </p>
</blockquote>
<p>2、concat和slice可以解决以上问题<br><figure class="highlight bash"><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></pre></td><td class="code"><pre><span class="line">var a = [1, 2, 3, 4],</span><br><span class="line"> b = a.slice(),</span><br><span class="line"> c = a.concat();</span><br><span class="line">b[2] = 0;</span><br><span class="line">c[2] = 0;</span><br><span class="line">console.log(a, b, c);</span><br></pre></td></tr></table></figure></p>
<blockquote>
<p>[1, 2, 3, 4] [1, 2, 0, 4] [1, 2, 0, 4]</p>
</blockquote>
<p>3、不过!以上slice和concat并不是使用在所有的数组上都有效(这说明它们的深拷贝只是作用在数组的第一维上)<br><figure class="highlight bash"><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></pre></td><td class="code"><pre><span class="line">var a = [{name: <span class="string">'lily'</span>, age: 18}, {name: <span class="string">'lucy'</span>, age: 16}],</span><br><span class="line"> b = a.slice(),</span><br><span class="line"> c = a.concat();</span><br><span class="line">b[1].age = 22;</span><br><span class="line">c[1].name = <span class="string">'bruce'</span>;</span><br><span class="line">console.log(JSON.stringify(a), JSON.stringify(b), JSON.stringify(c));</span><br></pre></td></tr></table></figure></p>
<blockquote>
<p>[{“name”:”lily”,”age”:18},{“name”:”bruce”,”age”:22}]<br>[{“name”:”lily”,”age”:18},{“name”:”bruce”,”age”:22}]<br>[{“name”:”lily”,”age”:18},{“name”:”bruce”,”age”:22}]</p>
</blockquote>
<p>4、那么如何实现数据的真正深拷贝<br>jQuery就有一个现成的: $.extend<br>自己扩展 ?</p>
<h1 id="chrome中类数组对象会自动根据key值进行排序"><a href="#chrome中类数组对象会自动根据key值进行排序" class="headerlink" title="chrome中类数组对象会自动根据key值进行排序"></a>chrome中类数组对象会自动根据key值进行排序</h1><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">var a = {<span class="string">'23'</span>: {name: <span class="string">'lily'</span>, age: 18}, <span class="string">'12'</span>: {name: <span class="string">'lucy'</span>, age: 20}};</span><br><span class="line">console.log(JSON.stringify(a));</span><br></pre></td></tr></table></figure>
<blockquote>
<p>{“12”:{“name”:”lucy”,”age”:20},”23”:{“name”:”lily”,”age”:18}}</p>
</blockquote>
<p class="article-more-link">
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
</div>
<div class="comments-count">
<span></span>
<a href="/2016/05/23/js奇遇/#comments" class="ds-thread-count comments-count-link" data-thread-key="2016/05/23/js奇遇/" data-count-type="comments"> </a>
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2016/05/15/hello-world/" title="Hello World" itemprop="url">Hello World</a>
</h1>
<p class="article-author">By
<a href="/about" title="funny99" target="_blank" itemprop="author">funny99</a>
<p class="article-time">
<time datetime="2016-05-15T03:09:01.000Z" itemprop="datePublished"> 发表于 2016-05-15</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><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 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><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 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><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 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><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 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">
<span></span>
<a href="/2016/05/15/hello-world/#comments" class="ds-thread-count comments-count-link" data-thread-key="2016/05/15/hello-world/" data-count-type="comments"> </a>
</div>
</footer>
</article>
<article class="post-expand photo" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2016/05/07/oh-my-picture/" title="oh my picture" itemprop="url">oh my picture</a>
</h1>
<p class="article-author">By
<a href="/about" title="funny99" target="_blank" itemprop="author">funny99</a>
<p class="article-time">
<time datetime="2016-05-07T09:00:52.000Z" itemprop="datePublished"> 发表于 2016-05-07</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">
<span></span>
<a href="/2016/05/07/oh-my-picture/#comments" class="ds-thread-count comments-count-link" data-thread-key="2016/05/07/oh-my-picture/" data-count-type="comments"> </a>
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2016/04/30/hexo-introduction/" title="Hexo Introduction" itemprop="url">Hexo Introduction</a>
</h1>
<p class="article-author">By
<a href="/about" title="funny99" target="_blank" itemprop="author">funny99</a>
<p class="article-time">
<time datetime="2016-04-30T09:00:56.000Z" itemprop="datePublished"> 发表于 2016-04-30</time>
</p>
</header>
<div class="article-content">
<h1 id="一-简介"><a href="#一-简介" class="headerlink" title="一 简介"></a>一 简介</h1><p>Hexo是一个快速、简洁且高效的博客框架(静态博客生成器)。Hexo使用Markdown解析文章,在几秒内,即可利用靓丽的主题生成静态网页。</p>
<h1 id="二-环境配置"><a href="#二-环境配置" class="headerlink" title="二 环境配置"></a>二 环境配置</h1><h4 id="安装Node"><a href="#安装Node" class="headerlink" title="安装Node"></a>安装Node</h4><h4 id="安装Git"><a href="#安装Git" class="headerlink" title="安装Git"></a>安装Git</h4><h4 id="安装Sublime(可选)"><a href="#安装Sublime(可选)" class="headerlink" title="安装Sublime(可选)"></a>安装Sublime(可选)</h4><h4 id="安装markdown编辑器(可选)"><a href="#安装markdown编辑器(可选)" class="headerlink" title="安装markdown编辑器(可选)"></a>安装markdown编辑器(可选)</h4><h1 id="三-GitHub"><a href="#三-GitHub" class="headerlink" title="三 GitHub"></a>三 GitHub</h1><p>注册账号、新建仓库(name必须和用户名一致,如funny99.github.io)、添加SSH公钥到『Account settings -> SSH Keys -> Add SSH Key』</p>
<h1 id="四-安装hexo"><a href="#四-安装hexo" class="headerlink" title="四 安装hexo"></a>四 安装hexo</h1><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">npm install -g hexo</span><br></pre></td></tr></table></figure>
<h1 id="五-初始化hexo"><a href="#五-初始化hexo" class="headerlink" title="五 初始化hexo"></a>五 初始化hexo</h1><p>即生成项目代码到blog下<br><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 init <folder></span><br></pre></td></tr></table></figure></p>
<p>也可以cd到目标目录,执行 hexo init<br>此处我的目录是:d://study/hexo/blog。以下都以这个目录为例 </p>
<h1 id="六-生成静态页面"><a href="#六-生成静态页面" class="headerlink" title="六 生成静态页面"></a>六 生成静态页面</h1><p>cd到你的init目录(d://study/hexo/blog),执行如下命令,生成静态页面至 public目录下<br><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>
<h1 id="七-本地启动"><a href="#七-本地启动" class="headerlink" title="七 本地启动"></a>七 本地启动</h1><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">hexo server</span><br><span class="line">或者 hexo s</span><br></pre></td></tr></table></figure>
<p>浏览器输入 <a href="http://localhost:4000" target="_blank" rel="external">http://localhost:4000</a> 就可以看到效果。默认生成的博客文章是 hello-world</p>
<h1 id="八-部署"><a href="#八-部署" class="headerlink" title="八 部署"></a>八 部署</h1><p>1、与github建立关联<br>找到配置文件_config.yml,找到最后 deploy,修改成:<br><figure class="highlight bash"><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></pre></td><td class="code"><pre><span class="line">deploy:</span><br><span class="line"> <span class="built_in">type</span>: git</span><br><span class="line"> repository: <您的github仓库地址></span><br><span class="line"> branch: master</span><br></pre></td></tr></table></figure></p>
<p>修改配置文件时注意YAML语法,参数冒号:后一定要留空格<br>2、安装:<br><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">npm install hexo-deployer-git --save</span><br></pre></td></tr></table></figure></p>
<p>3、部署<br><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>
<p>然后在浏览器输入http://<您的github仓库名称>/,就可以看到您的博客了(此处地址必须以github.io结尾??)<br>4、每次部署的时候,可以按以下三个步骤来执行<br><figure class="highlight bash"><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">hexo clean</span><br><span class="line">hexo generate</span><br><span class="line">hexo deploy</span><br></pre></td></tr></table></figure></p>
<p>hexo clean: 清空public目录<br>hexo generate:编译生成public目录<br>hexo deploy: 部署到github<br><img src="https://raw.githubusercontent.com/funny99/funny99_static/master/images/bendi-mulu.png" alt="本地代码结构"><br><img src="https://raw.githubusercontent.com/funny99/funny99_static/master/images/github-mulu.png" alt="github代码结构"><br>由上图可见,public即是hexo生成的可在浏览器环境执行的代码</p>
<h1 id="九-写博客"><a href="#九-写博客" class="headerlink" title="九 写博客"></a>九 写博客</h1><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 [layout] <span class="string">"postName"</span></span><br></pre></td></tr></table></figure>
<p>其中layout是可选参数,默认值为post。有哪些layout呢,请到scaffolds目录下查看,这些文件名称就是layout名称。当然你可以添加自己的layout,方法就是添加一个文件即可,同时你也可以编辑现有的layout,比如post的layout默认是\scaffolds\post.md<br>postName就是你这篇文章的标题</p>
<p>这里使用的是markdown语法。有关markdown的语法介绍,请看这篇<a href="http://funny99.github.io/2016/04/30/markdown-grammar/">http://funny99.github.io/2016/04/30/markdown-grammar/</a></p>
<h1 id="十-切换主题"><a href="#十-切换主题" class="headerlink" title="十 切换主题"></a>十 切换主题</h1><p>1、下载主题(这里以modernist为例)<br><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">git <span class="built_in">clone</span> https://github.com/heroicyang/hexo-theme-modernist.git themes/modernist</span><br></pre></td></tr></table></figure></p>
<p>2、在配置文件中修改默认主题<br>打开_config.yml,修改<br>theme: modernist</p>
<h1 id="十一-使用评论系统"><a href="#十一-使用评论系统" class="headerlink" title="十一 使用评论系统"></a>十一 使用评论系统</h1><p>以多说为例<br>在多说设置你的short_name:<br>很多人问short_name是什么,其实就是在<a href="http://duoshuo.com/create-site/自己申请的" target="_blank" rel="external">http://duoshuo.com/create-site/自己申请的</a><br>copy一份通用代码,粘贴到你的/themes/modernist/layout/_partial/comment.ejs里面</p>
<h1 id="十-遇到的问题"><a href="#十-遇到的问题" class="headerlink" title="十 遇到的问题"></a>十 遇到的问题</h1>
<p class="article-more-link">
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
<div class="article-tags">
<span></span> <a href="/tags/hexo/">hexo</a><a href="/tags/使用入门/">使用入门</a>
</div>
</div>
<div class="comments-count">
<span></span>
<a href="/2016/04/30/hexo-introduction/#comments" class="ds-thread-count comments-count-link" data-thread-key="2016/04/30/hexo-introduction/" data-count-type="comments"> </a>
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2016/04/30/markdown-grammar/" title="markdown简明语法-学习" itemprop="url">markdown简明语法-学习</a>
</h1>
<p class="article-author">By
<a href="/about" title="funny99" target="_blank" itemprop="author">funny99</a>
<p class="article-time">
<time datetime="2016-04-30T06:33:48.000Z" itemprop="datePublished"> 发表于 2016-04-30</time>
</p>
</header>
<div class="article-content">
<h3 id="标题"><a href="#标题" class="headerlink" title="标题"></a>标题</h3><figure class="highlight html"><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"># 一级标题</span><br><span class="line">## 二级标题</span><br><span class="line">### 三级标题</span><br><span class="line">#### 四级标题</span><br><span class="line">##### 五级标题</span><br></pre></td></tr></table></figure>
<h1 id="一级标题"><a href="#一级标题" class="headerlink" title="一级标题"></a>一级标题</h1><h2 id="二级标题"><a href="#二级标题" class="headerlink" title="二级标题"></a>二级标题</h2><h3 id="三级标题"><a href="#三级标题" class="headerlink" title="三级标题"></a>三级标题</h3><h4 id="四级标题"><a href="#四级标题" class="headerlink" title="四级标题"></a>四级标题</h4><h5 id="五级标题"><a href="#五级标题" class="headerlink" title="五级标题"></a>五级标题</h5><p> </p>
<h3 id="分割线"><a href="#分割线" class="headerlink" title="分割线"></a>分割线</h3><figure class="highlight html"><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">---</span><br><span class="line">***</span><br><span class="line">___</span><br></pre></td></tr></table></figure>
<hr>
<hr>
<hr>
<h3 id="无序列表1"><a href="#无序列表1" class="headerlink" title="无序列表1"></a>无序列表1</h3><figure class="highlight html"><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">* item</span><br><span class="line">* item</span><br><span class="line">* item</span><br></pre></td></tr></table></figure>
<ul>
<li>item</li>
<li>item</li>
<li>item </li>
</ul>
<h3 id="无序列表2"><a href="#无序列表2" class="headerlink" title="无序列表2"></a>无序列表2</h3><figure class="highlight html"><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">- item</span><br><span class="line">- item</span><br><span class="line">- item</span><br></pre></td></tr></table></figure>
<ul>
<li>item</li>
<li>item</li>
<li>item</li>
</ul>
<h3 id="无序列表3"><a href="#无序列表3" class="headerlink" title="无序列表3"></a>无序列表3</h3><figure class="highlight html"><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">+ item</span><br><span class="line">+ item</span><br><span class="line">+ item</span><br></pre></td></tr></table></figure>
<ul>
<li>item</li>
<li>item</li>
<li>item</li>
</ul>
<h3 id="有序列表"><a href="#有序列表" class="headerlink" title="有序列表"></a>有序列表</h3><figure class="highlight html"><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">1. item</span><br><span class="line">1. item</span><br><span class="line">1. item</span><br></pre></td></tr></table></figure>
<ol>
<li>item</li>
<li>item</li>
<li>item</li>
</ol>
<h3 id="引用"><a href="#引用" class="headerlink" title="引用"></a>引用</h3><figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">> 床前后明月光,疑似地上霜。举头望明月,低头思故乡。</span><br></pre></td></tr></table></figure>
<blockquote>
<p>床前后明月光,疑似地上霜。举头望明月,低头思故乡。</p>
</blockquote>
<h3 id="图片"><a href="#图片" class="headerlink" title="图片"></a>图片</h3><figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"></span><br></pre></td></tr></table></figure>
<p><img src="http://github.global.ssl.fastly.net/images/modules/logos_page/GitHub-Mark.png" alt="insert img" title="insert-img-title"></p>
<h3 id="链接"><a href="#链接" class="headerlink" title="链接"></a>链接</h3><figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">[不如的博客](http://bruce-sha.github.io 'bruce-blog-title')</span><br></pre></td></tr></table></figure>
<p><a href="http://bruce-sha.github.io" title="bruce-blog-title" target="_blank" rel="external">不如的博客</a></p>
<p>###粗体<br><figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">**我是被左右两个星号包围的粗体**</span><br></pre></td></tr></table></figure></p>
<p><strong>我是被左右两个星号包围的粗体</strong></p>
<p>###斜体<br><figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">*我是被左右一个星号包围的斜体*</span><br></pre></td></tr></table></figure></p>
<p><em>我是被左右一个星号包围的斜体</em></p>
<p>###表格<br><figure class="highlight html"><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">| Tables | Are | Cool |</span><br><span class="line">| ------------- |:-------------:| -----:|</span><br><span class="line">| col 3 is | right-aligned | $1600 |</span><br><span class="line">| col 2 is | centered | $12 |</span><br><span class="line">| zebra stripes | are neat | $1 |</span><br></pre></td></tr></table></figure></p>
<table>
<thead>
<tr>
<th>Tables</th>
<th style="text-align:center">Are</th>
<th style="text-align:right">Cool</th>
</tr>
</thead>
<tbody>
<tr>
<td>col 3 is</td>
<td style="text-align:center">right-aligned</td>
<td style="text-align:right">$1600</td>
</tr>
<tr>
<td>col 2 is</td>
<td style="text-align:center">centered</td>
<td style="text-align:right">$12</td>
</tr>
<tr>
<td>zebra stripes</td>
<td style="text-align:center">are neat</td>
<td style="text-align:right">$1</td>
</tr>
</tbody>
</table>
<h3 id="代码框"><a href="#代码框" class="headerlink" title="代码框"></a>代码框</h3><figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">`alert('this is js code')`</span><br></pre></td></tr></table></figure>
<p><code>alert('this is js code')</code></p>
<p class="article-more-link">
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
<div class="article-tags">
<span></span> <a href="/tags/markdown/">markdown</a><a href="/tags/语法/">语法</a>
</div>
</div>
<div class="comments-count">
<span></span>
<a href="/2016/04/30/markdown-grammar/#comments" class="ds-thread-count comments-count-link" data-thread-key="2016/04/30/markdown-grammar/" data-count-type="comments"> </a>
</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="tagslist">
<p class="asidetitle">标签</p>
<ul class="clearfix">
<li><a href="/tags/hexo/" title="hexo">hexo<sup>1</sup></a></li>
<li><a href="/tags/使用入门/" title="使用入门">使用入门<sup>1</sup></a></li>
<li><a href="/tags/markdown/" title="markdown">markdown<sup>1</sup></a></li>
<li><a href="/tags/语法/" title="语法">语法<sup>1</sup></a></li>
</ul>
</div>
<div class="linkslist">
<p class="asidetitle">友情链接</p>
<ul>
<li>
<a href="https://coderq.com" target="_blank" title="一个面向程序员交流分享的新一代社区">码农圈</a>
</li>
<li>
<a href="http://www.muoun.com" target="_blank" title="sha's Blog">sha's Blog</a>
</li>
</ul>
</div>
<div class="rsspart">
<a href="/atom.xml" target="_blank" title="rss">RSS 订阅</a>
</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 funny99. <br/>
This is my blog,believe it or not.</p>
</section>
<div class="social-font" class="clearfix">
<a href="https://github.com/ttps://github.com/funny99/" target="_blank" class="icon-github" title="github"></a>
<a href="mailto:axu.0802008@163.com" target="_blank" class="icon-email" title="Email Me"></a>
</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> © 2016
<a href="/about" target="_blank" title="funny99">funny99</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>