-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
504 lines (274 loc) · 13.7 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
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>Welcome to the literati Association!</title>
<meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
<meta name="author" content="HJ">
<meta name="description">
<meta property="og:type" content="website">
<meta property="og:title" content="Welcome to the literati Association!">
<meta property="og:url" content="http://yoursite.com/index.html">
<meta property="og:site_name" content="Welcome to the literati Association!">
<meta property="og:description">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Welcome to the literati Association!">
<meta name="twitter:description">
<link rel="alternative" href="/atom.xml" title="Welcome to the literati Association!" 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="Welcome to the literati Association!" title="Welcome to the literati Association!"/></a>
</div>
<div id="textlogo">
<h1 class="site-name"><a href="/" title="Welcome to the literati Association!">Welcome to the literati Association!</a></h1>
<h2 class="blog-motto">The president of the literati association is HJ.</h2>
</div>
<div class="navbar"><a class="navbutton navmobile" href="#" title="菜单">
</a></div>
<nav class="animated">
<ul>
<ul>
<li><a href="/">主页</a></li>
<li><a href="/archives">归档</a></li>
<li><a href="/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:yoursite.com">
</form>
</li>
</ul>
</nav>
</div>
</header>
<div id="container">
<div id="main">
<section class="post" itemscope itemprop="blogitem">
<a href="/2019/03/11/Object.create()/" title="Object.create()" itemprop="url">
<h1 itemprop="name">Object.create()</h1>
<p itemprop="description" >Object.create()的定义Object.create(proto,[propertiesObject])
proto:新创建对象的原型对象propertiesObject:可选。要添加到新对象的可枚举(新添加的属性是其自身的属性,而不是其原型链上的属性)的属性
Ob</p>
<time datetime="2019-03-11T02:56:01.393Z" itemprop="datePublished">2019-03-11</time>
</a>
</section>
<section class="post" itemscope itemprop="blogitem">
<a href="/2019/02/14/flex布局/" title="flex布局" itemprop="url">
<h1 itemprop="name">flex布局</h1>
<p itemprop="description" >一、简要介绍布局的传统解决方案是基于盒子模型,依赖display+position+float方式来实现,灵活性较差.
是2009年w3c提出的一种可以简洁、快速弹性布局的属性。主要思想是给予容器控制内部元素高度和宽度的能力。目前已得到以下浏览器支持:其中在webkit内核的浏览</p>
<time datetime="2019-02-14T07:04:18.579Z" itemprop="datePublished">2019-02-14</time>
</a>
</section>
<section class="post" itemscope itemprop="blogitem">
<a href="/2019/01/25/vue-实用记录/" title="vue实用记录(持续中)" itemprop="url">
<h1 itemprop="name">vue实用记录(持续中)</h1>
<p itemprop="description" >1.动态路由匹配官网链接
123456const router = new VueRouter(&#123; routes: [ // 动态路径参数 以冒号开头 &#123; path: &apos;/user/:id&apos;, component: User </p>
<time datetime="2019-01-25T03:42:22.863Z" itemprop="datePublished">2019-01-25</time>
</a>
</section>
<section class="post" itemscope itemprop="blogitem">
<a href="/2018/12/06/webpack-loader/" title="webpack--loader" itemprop="url">
<h1 itemprop="name">webpack--loader</h1>
<p itemprop="description" >1.媒体资源loader需要对图片,视频,文字等进行loader的配置,用到的是url-loader.列如对图片的配置:
12345678&#123; test: /\.(png|jpg|gif|svg)$/, load</p>
<time datetime="2018-12-06T12:41:43.897Z" itemprop="datePublished">2018-12-06</time>
</a>
</section>
<section class="post" itemscope itemprop="blogitem">
<a href="/2018/11/16/vue-vuex/" title="通信之全局传值vuex" itemprop="url">
<h1 itemprop="name">通信之全局传值vuex</h1>
<p itemprop="description" >定义vuex是一个专门为vue设计的集中式状态管理架构.可以简单理解成data中的属性值,可以在任意组件中操作.
使用12//1.下载安装vuexnpm i vuex --save
123456789101112132.引入 // store.jsimport Vue from </p>
<time datetime="2018-11-16T07:43:18.907Z" itemprop="datePublished">2018-11-16</time>
</a>
</section>
<section class="post" itemscope itemprop="blogitem">
<a href="/2018/11/06/vue-eventBus/" title="Vue通信之兄弟通信(eventBus)" itemprop="url">
<h1 itemprop="name">Vue通信之兄弟通信(eventBus)</h1>
<p itemprop="description" >使用 eventBus 事件总线,当触发事件时,发送一个通知出去,在需要响应的地方接收这个通知,响应事件.
1.创建eventBus//新建一个 js 文件,写下如下代码就创建好了一个 eventbus,没错,就是这么简单
123import Vue from &apos;vue</p>
<time datetime="2018-11-06T03:30:48.148Z" itemprop="datePublished">2018-11-06</time>
</a>
</section>
<section class="post" itemscope itemprop="blogitem">
<a href="/2018/11/05/vue-爷孙通信/" title="vue通信之爷孙通信($attrs/$listeners)" itemprop="url">
<h1 itemprop="name">vue通信之爷孙通信($attrs/$listeners)</h1>
<p itemprop="description" >一.attrs1.场景多级组件嵌套需要传递数据时,通常使用的方法是通过vuex。如果仅仅是传递数据,而不做中间处理,使用 vuex 处理,未免有点杀鸡用牛刀。Vue 2.4 版本提供了另一种方法,使用 v-bind=&#39;$attrs&#39;, 将父组件中不被认为 prop</p>
<time datetime="2018-11-05T08:48:06.439Z" itemprop="datePublished">2018-11-05</time>
</a>
</section>
<section class="post" itemscope itemprop="blogitem">
<a href="/2018/10/31/ES6模板字符串/" title="ES6模板字符串" itemprop="url">
<h1 itemprop="name">ES6模板字符串</h1>
<p itemprop="description" >基础用法 12let message = `Hello World`;console.log(message);
如果你碰巧要在字符串中使用反撇号,你可以使用反斜杠转义:
12let message = `Hello \` World`;console.log(messag</p>
<time datetime="2018-10-31T02:12:45.795Z" itemprop="datePublished">2018-10-31</time>
</a>
</section>
<section class="post" itemscope itemprop="blogitem">
<a href="/2018/10/19/Object.assign/" title="Object.assign" itemprop="url">
<h1 itemprop="name">Object.assign</h1>
<p itemprop="description" >1.简介Object.assign()是es6新增的接口,用来合并多个对象.
2.基本用用法1Object.assign(target, ...sources );
用于合并多个对象,将源对象(source)的所有可枚举属性,复制到目标对象(target).
3.注意事项1.如果</p>
<time datetime="2018-10-19T02:38:56.716Z" itemprop="datePublished">2018-10-19</time>
</a>
</section>
<section class="post" itemscope itemprop="blogitem">
<a href="/2018/10/16/JSON基础/" title="JSON基础" itemprop="url">
<h1 itemprop="name">JSON基础</h1>
<p itemprop="description" >1. 何为 JSONJSON( JavaScript Object Notation ),即 JavaScript 对象表示法。JSON 主要用于存储和交换文本信息,类似于XML。但是和 XML 相比,JSON 是更加轻量级的文本数据交换格式,具有更小、更快、更易解析的特点。JS</p>
<time datetime="2018-10-16T02:01:57.996Z" itemprop="datePublished">2018-10-16</time>
</a>
</section>
<nav id="page-nav" class="clearfix unexpand">
<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><span class="space">…</span><a class="page-number" href="/page/8/">8</a><a class="extend next" rel="next" href="/page/2/">Next<span></span></a>
</nav>
</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="github-card">
<p class="asidetitle">Github 名片</p>
<div class="github-card" data-github="hjaiim" data-width="220" data-height="119" data-theme="medium">
<script type="text/javascript" src="//cdn.jsdelivr.net/github-cards/latest/widget.js" ></script>
</div>
</div>
<div class="linkslist">
<p class="asidetitle">友情链接</p>
<ul>
</ul>
</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=5597151709&verifier=2e2fc03f&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> To the world you maybe one peeson , but to one person you maybe the world. <br/>
This is my goddess.</p>
</section>
<div class="social-font" class="clearfix">
<a href="https://github.com/hjaiim" target="_blank" class="icon-github" title="github"></a>
<a href="http://stackoverflow.com/users/8573660" target="_blank" class="icon-stack-overflow" title="stackoverflow"></a>
<a href="http://www.zhihu.com/people/liang-ren-de-hui-yi-yiren-guo" target="_blank" class="icon-zhihu" title="知乎"></a>
<a href="mailto:[email protected]" 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> © 2019
<a href="/about" target="_blank" title="HJ">HJ</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>