-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
671 lines (485 loc) · 18.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
<meta name="description" content="Mr.桃's blog">
<meta name="keyword" content="hexo-theme, vuejs">
<link rel="shortcut icon" href="/css/images/logo.png">
<title>
Mr.Tao's Blog
</title>
<link href="//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link href="//cdn.bootcss.com/nprogress/0.2.0/nprogress.min.css" rel="stylesheet">
<link href="//cdn.bootcss.com/highlight.js/9.12.0/styles/tomorrow.min.css" rel="stylesheet">
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/plugins/gitment.css">
<script src="//cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<script src="/asset/geopattern.min.js"></script>
<script src="/js/qrious.js"></script>
<script src="/js/gitment.js"></script>
<!-- MathJax support START -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
processEscapes: true,
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="//cdn.bootcss.com/mathjax/2.7.1/latest.js?config=TeX-AMS-MML_HTMLorMML"></script>
<!-- MathJax support END -->
</head>
<div class="wechat-share">
<img src="/css/images/logo.png" />
</div>
<body>
<div id="main_body">
<header class="header fixed-header">
<div class="header-container">
<a class="home-link" href="/">
<div class="logo"></div>
<span>Mr.Tao's Blog</span>
</a>
<ul class="right-list">
<li class="list-item">
<a href="/" class="item-link active">Home</a>
</li>
<li class="list-item">
<a href="/tags/" class="item-link">Tags</a>
</li>
<li class="list-item">
<a href="/archives/" class="item-link">Archives</a>
</li>
<li class="list-item">
<a href="/project/" class="item-link">Projects</a>
</li>
<li class="list-item">
<a href="/about/" class="item-link">About</a>
</li>
</ul>
<div class="menu">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</div>
<div class="menu-mask">
<ul class="menu-list">
<li class="menu-item">
<a href="/" class="menu-link mobile-active">Home</a>
</li>
<li class="menu-item">
<a href="/tags/" class="menu-link">Tags</a>
</li>
<li class="menu-item">
<a href="/archives/" class="menu-link">Archives</a>
</li>
<li class="menu-item">
<a href="/project/" class="menu-link">Projects</a>
</li>
<li class="menu-item">
<a href="/about/" class="menu-link">About</a>
</li>
</ul>
</div>
</div>
</header>
<main class="app-body">
<article class="article-card">
<h2 class="article-head">
<div class="article-head__wrapper"></div>
<a href="/2020/02/09/Vue-js随记/">Vue.js随记</a>
</h2>
<p class="article-date">2020年2月9日</p>
<a href="/tags#Vue" >
<span class="tag-code">Vue</span>
</a>
<a href="/tags#webpack" >
<span class="tag-code">webpack</span>
</a>
<div class="article-summary">
计算属性computed:{}
将计算的数据缓存下来,数据没改变的时候调用缓存数据,提高效能,比method每次重新计算要好一点
v-show/v-if
v-show 只是简单的改变display: none; 而v-if 是改变了dom结构的
v-html
正常显示变量的内部标签内容, ...
</div>
<a class="more" href="/2020/02/09/Vue-js随记/">Read more</a>
</article><article class="article-card">
<h2 class="article-head">
<div class="article-head__wrapper"></div>
<a href="/2020/02/09/“drupal笔记”/">drupal随记</a>
</h2>
<p class="article-date">2020年2月9日</p>
<a href="/tags#php" >
<span class="tag-code">php</span>
</a>
<a href="/tags#drupal" >
<span class="tag-code">drupal</span>
</a>
<a href="/tags#drupal8" >
<span class="tag-code">drupal8</span>
</a>
<div class="article-summary">
搜索引擎推荐google或者微软bing必应
数据库需要支持pdo操作,记得手动在setting最后的数据库配置添加如下:‘pdo’ => array(PDO::ATTR_TIMEOUT => 2.0, PDO::MYSQL_ATTR_COMPRESS => 1),
...
</div>
<a class="more" href="/2020/02/09/“drupal笔记”/">Read more</a>
</article><article class="article-card">
<h2 class="article-head">
<div class="article-head__wrapper"></div>
<a href="/2020/02/09/“杂项笔记”/">杂项笔记</a>
</h2>
<p class="article-date">2020年2月9日</p>
<a href="/tags#php" >
<span class="tag-code">php</span>
</a>
<a href="/tags#npm" >
<span class="tag-code">npm</span>
</a>
<a href="/tags#PCRE" >
<span class="tag-code">PCRE</span>
</a>
<a href="/tags#thinkphp" >
<span class="tag-code">thinkphp</span>
</a>
<a href="/tags#bootstrap" >
<span class="tag-code">bootstrap</span>
</a>
<a href="/tags#jade" >
<span class="tag-code">jade</span>
</a>
<a href="/tags#gulp" >
<span class="tag-code">gulp</span>
</a>
<a href="/tags#composer" >
<span class="tag-code">composer</span>
</a>
<a href="/tags#jQuery" >
<span class="tag-code">jQuery</span>
</a>
<a href="/tags#git" >
<span class="tag-code">git</span>
</a>
<div class="article-summary">
php
strpos($url, 'api/')注意如果要使用strpos来作为if的判断条件的话,可能会子串刚好在被索引串的开头位置,也就是返回结果为数值0,所以if(strpos($url, 'api/'))是会出现逻辑问题的,应该使用if(strpos( ...
</div>
<a class="more" href="/2020/02/09/“杂项笔记”/">Read more</a>
</article><article class="article-card">
<h2 class="article-head">
<div class="article-head__wrapper"></div>
<a href="/2020/02/09/第三方库使用记录/">第三方库使用记录</a>
</h2>
<p class="article-date">2020年2月9日</p>
<a href="/tags#npm" >
<span class="tag-code">npm</span>
</a>
<a href="/tags#bootstrap" >
<span class="tag-code">bootstrap</span>
</a>
<a href="/tags#gulp" >
<span class="tag-code">gulp</span>
</a>
<a href="/tags#composer" >
<span class="tag-code">composer</span>
</a>
<a href="/tags#swiper" >
<span class="tag-code">swiper</span>
</a>
<a href="/tags#fontawesome" >
<span class="tag-code">fontawesome</span>
</a>
<div class="article-summary">
npm 库: https://www.npmjs.com/composer 库: https://packagist.org/
注:本笔记中的[工具]一般指通过命令行来起到作用的一些开发环境的辅助工具swiper–滑动幻灯片效果插件https://www.swiper.com.cn/usag ...
</div>
<a class="more" href="/2020/02/09/第三方库使用记录/">Read more</a>
</article><article class="article-card">
<h2 class="article-head">
<div class="article-head__wrapper"></div>
<a href="/2020/02/09/JS精粹/">JS精粹</a>
</h2>
<p class="article-date">2020年2月9日</p>
<a href="/tags#JS" >
<span class="tag-code">JS</span>
</a>
<div class="article-summary">
基本数据类型
Undefined Null Boolean String Number
而Object则是复杂数据类型
typeof 返回的数据类型在基本数据类型的基础(undefined object boolean number string symbol注意没有null)上还有fu ...
</div>
<a class="more" href="/2020/02/09/JS精粹/">Read more</a>
</article><article class="article-card">
<h2 class="article-head">
<div class="article-head__wrapper"></div>
<a href="/2020/02/09/POSTMAN测试开发/">POSTMAN测试开发</a>
</h2>
<p class="article-date">2020年2月9日</p>
<a href="/tags#接口" >
<span class="tag-code">接口</span>
</a>
<a href="/tags#测试开发" >
<span class="tag-code">测试开发</span>
</a>
<a href="/tags#POSTMAN" >
<span class="tag-code">POSTMAN</span>
</a>
<div class="article-summary">
变量
在多个标签之间,可以通过配置全局变量 或者 环境变量 来共享变量数值,此外还有 collection variables /local /data
postman内置了三个特殊变量$guid $timestamp $randomInt,产生动态的数值,在使用时候加上双大括号(无法通过 ...
</div>
<a class="more" href="/2020/02/09/POSTMAN测试开发/">Read more</a>
</article><article class="article-card">
<h2 class="article-head">
<div class="article-head__wrapper"></div>
<a href="/2020/02/09/CSS世界-笔记/">CSS世界-笔记</a>
</h2>
<p class="article-date">2020年2月9日</p>
<a href="/tags#CSS" >
<span class="tag-code">CSS</span>
</a>
<div class="article-summary">
本文内容是在阅读张鑫旭所著的CSS世界所做的一些随记
# CSS3新特性
布局更为丰富
媒介查询和响应式布局特性(比如srcset object-fit)
弹性盒子布局
格栅布局
视觉表现进步
圆角、阴影和渐变
transform变换
filter滤镜和混合模式
animation动画 ...
</div>
<a class="more" href="/2020/02/09/CSS世界-笔记/">Read more</a>
</article><article class="article-card">
<h2 class="article-head">
<div class="article-head__wrapper"></div>
<a href="/2020/02/09/CSS动画/">CSS动画</a>
</h2>
<p class="article-date">2020年2月9日</p>
<a href="/tags#动画" >
<span class="tag-code">动画</span>
</a>
<div class="article-summary">
CSS动画优化参考
关于图层
在渲染DOM的时候,浏览器所做的工作实际上是:
获取DOM后分割为多个图层
对每个图层的节点计算样式结果(Recalculate style–样式重计算)
为每个节点生成图形和位置(Layout–回流和重布局)
将每个节点绘制填充到图层位图中(Paint Se ...
</div>
<a class="more" href="/2020/02/09/CSS动画/">Read more</a>
</article><article class="article-card">
<h2 class="article-head">
<div class="article-head__wrapper"></div>
<a href="/2020/02/09/HTML-CSS基础笔记/">HTML/CSS基础笔记</a>
</h2>
<p class="article-date">2020年2月9日</p>
<a href="/tags#CSS" >
<span class="tag-code">CSS</span>
</a>
<a href="/tags#JS" >
<span class="tag-code">JS</span>
</a>
<a href="/tags#HTML" >
<span class="tag-code">HTML</span>
</a>
<a href="/tags#兼容性" >
<span class="tag-code">兼容性</span>
</a>
<div class="article-summary">
BOMDOM
Element.insertBefore(a,b)要求调用的Element必须是b的父亲节点
CSP安全策略<meta http-equiv="Content-Security-Policy" content="default-src & ...
</div>
<a class="more" href="/2020/02/09/HTML-CSS基础笔记/">Read more</a>
</article><article class="article-card">
<h2 class="article-head">
<div class="article-head__wrapper"></div>
<a href="/2018/11/28/VsCode配置/">VsCode配置</a>
</h2>
<p class="article-date">2018年11月28日</p>
<div class="article-summary">
使用的插件
ESlint 自动修复代码风格
livereload 配合浏览器插件在服务器环境下实现自动刷新
Markdown All in One 文档书写格式化
Markdown Preview Enhanced 文档预览
stylus .styl文件格式化
Vetur Vue文 ...
</div>
<a class="more" href="/2018/11/28/VsCode配置/">Read more</a>
</article>
<div class="guide-pager">
<a class="unvisible" href="/"><span class="page-arrow">←</span> Prev</a>
<a href="/page/2/">Next<span class="page-arrow"> →</span></a>
</div>
</main>
<canvas></canvas>
</div>
<div class="scroll-top">
<span class="arrow-icon"></span>
</div>
<div class="sidebar" id="archives">
<section class="time-section">
<h1 class="section-year">
2020
</h1>
<div class="section-list">
<div class="section-list-item">
<a href="/2020/02/09/第三方库使用记录/" class="archive-title">第三方库使用记录</a>
<p class="archive-date">02-09</p>
</div>
<div class="section-list-item">
<a href="/2020/02/09/“杂项笔记”/" class="archive-title">杂项笔记</a>
<p class="archive-date">02-09</p>
</div>
<div class="section-list-item">
<a href="/2020/02/09/“drupal笔记”/" class="archive-title">drupal随记</a>
<p class="archive-date">02-09</p>
</div>
<div class="section-list-item">
<a href="/2020/02/09/Vue-js随记/" class="archive-title">Vue.js随记</a>
<p class="archive-date">02-09</p>
</div>
<div class="section-list-item">
<a href="/2020/02/09/POSTMAN测试开发/" class="archive-title">POSTMAN测试开发</a>
<p class="archive-date">02-09</p>
</div>
<div class="section-list-item">
<a href="/2020/02/09/JS精粹/" class="archive-title">JS精粹</a>
<p class="archive-date">02-09</p>
</div>
<div class="section-list-item">
<a href="/2020/02/09/HTML-CSS基础笔记/" class="archive-title">HTML/CSS基础笔记</a>
<p class="archive-date">02-09</p>
</div>
<div class="section-list-item">
<a href="/2020/02/09/CSS动画/" class="archive-title">CSS动画</a>
<p class="archive-date">02-09</p>
</div>
<div class="section-list-item">
<a href="/2020/02/09/CSS世界-笔记/" class="archive-title">CSS世界-笔记</a>
<p class="archive-date">02-09</p>
</div>
</div>
</section>
<section class="time-section">
<h1 class="section-year">
2018
</h1>
<div class="section-list">
<div class="section-list-item">
<a href="/2018/11/28/VsCode配置/" class="archive-title">VsCode配置</a>
<p class="archive-date">11-28</p>
</div>
<div class="section-list-item">
<a href="/2018/09/12/ES6/" class="archive-title">ES6</a>
<p class="archive-date">09-12</p>
</div>
<div class="section-list-item">
<a href="/2018/08/27/SSH代理/" class="archive-title">SSH代理</a>
<p class="archive-date">08-27</p>
</div>
<div class="section-list-item">
<a href="/2018/07/30/hexo随记/" class="archive-title">hexo随记</a>
<p class="archive-date">07-30</p>
</div>
<div class="section-list-item">
<a href="/2018/07/29/系统使用随记/" class="archive-title">Deepin系统使用随记</a>
<p class="archive-date">07-29</p>
</div>
<div class="section-list-item">
<a href="/2018/07/29/symfony随记/" class="archive-title">symfony随记</a>
<p class="archive-date">07-29</p>
</div>
<div class="section-list-item">
<a href="/2018/07/29/sublime环境配置/" class="archive-title">sublime环境配置</a>
<p class="archive-date">07-29</p>
</div>
<div class="section-list-item">
<a href="/2018/07/29/“node-js笔记”/" class="archive-title">“node.js实战”随记</a>
<p class="archive-date">07-29</p>
</div>
<div class="section-list-item">
<a href="/2018/07/29/“编码规范”/" class="archive-title">编码规范</a>
<p class="archive-date">07-29</p>
</div>
</div>
</section>
<a id="sidebar-arrows">
<div class="sidebar-arrow-outer"></div>
<div class="sidebar-arrow-inner"></div>
</a>
</div>
<div id="animate_background" style="position: absolute; top: 0; left: 0; z-index: 2;">
<canvas id=></canvas>
</div>
<div id="animate_mouse_cursor">
<div class="animate_mouse_rect-1">
<div class="animate_mouse_rect-2"></div>
</div>
</div>
<footer class="app-footer">
<p class="copyright">
© 2020 | Proudly powered by <a href="https://hexo.io" target="_blank">Hexo</a>
<br>
Theme by <a href="https://github.com/yanm1ng" target="_blank">yanm1ng</a><br>
Patched by <a href="https://github.com/xuxiantao" target="_blank">XXT</a>
</p>
</footer>
<script>
function async(u, c) {
var d = document, t = 'script',
o = d.createElement(t),
s = d.getElementsByTagName(t)[0];
o.src = u;
if (c) { o.addEventListener('load', function (e) { c(null, e); }, false); }
s.parentNode.insertBefore(o, s);
}
</script>
<script>
async("//cdn.bootcss.com/fastclick/1.0.6/fastclick.min.js", function(){
FastClick.attach(document.body);
})
</script>
<script>
var hasLine = 'true';
async("//cdn.bootcss.com/highlight.js/9.12.0/highlight.min.js", function(){
$('figure pre').each(function(i, block) {
var figure = $(this).parents('figure');
if (hasLine === 'false') {
figure.find('.gutter').hide();
}
var lang = figure.attr('class').split(' ')[1] || 'code';
var codeHtml = $(this).html();
var codeTag = document.createElement('code');
codeTag.className = lang;
codeTag.innerHTML = codeHtml;
$(this).attr('class', '').empty().html(codeTag);
figure.attr('data-lang', lang.toUpperCase());
hljs.highlightBlock(block);
});
})
</script>
<!-- Baidu Tongji -->
<script src="/js/script.js"></script>
<script src="/js/animate_mouse.js"></script>
</body>
</html>