-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
663 lines (502 loc) · 28.8 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
<!DOCTYPE html>
<!--[if lte IE 8 ]>
<html class="ie" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<!--
*************** * * *
8 * * *
8 * * *
8 ** *
8 * * *
8 * * *
8 * * *
8 * * *********** -----Theme By Kieran(http://go.kieran.top)
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
<!--<![endif]-->
<head>
<title>GRACE'S BLOG</title>
<!-- Meta data -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8" >
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="generator" content="GRACE'S BLOG">
<meta name="author" content="grace">
<meta name="description" content="GRACE'S BLOG" />
<meta name="keywords" content="GRACE'S BLOG" />
<!-- Favicon, (keep icon in root folder) -->
<link rel="Shortcut Icon" href="/myBlog/img/favicon.ico" type="image/ico">
<link rel="alternate" href="/myBlog/atom.xml" title="GRACE'S BLOG" type="application/atom+xml">
<link rel="stylesheet" href="/myBlog/css/all.css" media="screen" type="text/css">
<link rel="stylesheet" href="/myBlog/highlightjs/vs.css" type="text/css">
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="/myBlog/css/ie8.css" />
<![endif]-->
<!-- jQuery | Load our jQuery, with an alternative source fallback to a local version if request is unavailable -->
<script src="/myBlog/js/jquery-1.11.1.min.js"></script>
<script>window.jQuery || document.write('<script src="js/jquery-1.11.1.min.js"><\/script>')</script>
<!-- Load these in the <head> for quicker IE8+ load times -->
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="/myBlog/js/html5shiv.min.js"></script>
<script src="/myBlog/js/respond.min.js"></script>
<![endif]-->
<style>.col-md-8.col-md-offset-2.opening-statement img{display:none;}</style>
</head>
<!--
<body class="home-template">
-->
<body id="index" class="lightnav animsition">
<!-- ============================ Off-canvas navigation =========================== -->
<div class="sb-slidebar sb-right sb-style-overlay sb-momentum-scrolling">
<div class="sb-close" aria-label="Close Menu" aria-hidden="true">
<img src="/myBlog/img/close.png" alt="Close" />
</div>
<!-- Lists in Slidebars -->
<ul class="sb-menu">
<li><a href="/myBlog/" class="animsition-link" title="Home">Home</a></li>
<li><a href="/myBlog/archives" class="animsition-link" title="archive">archives</a>
</li>
<!-- Dropdown Menu -->
<li>
<a class="sb-toggle-submenu">Categories<span class="sb-caret"></span></a>
<ul class="sb-submenu">
<li>
<a href="/myBlog/categories/js/" class="animsition-link">
js<small>(1)</small></a>
</li>
<li>
<a href="/myBlog/categories/mobile/" class="animsition-link">
mobile<small>(1)</small></a>
</li>
<li>
<a href="/myBlog/categories/mock/" class="animsition-link">
mock<small>(1)</small></a>
</li>
<li>
<a href="/myBlog/categories/mpvue/" class="animsition-link">
mpvue<small>(1)</small></a>
</li>
<li>
<a href="/myBlog/categories/next/" class="animsition-link">
next<small>(1)</small></a>
</li>
<li>
<a href="/myBlog/categories/node/" class="animsition-link">
node<small>(1)</small></a>
</li>
<li>
<a href="/myBlog/categories/other/" class="animsition-link">
other<small>(2)</small></a>
</li>
<li>
<a href="/myBlog/categories/react/" class="animsition-link">
react<small>(1)</small></a>
</li>
<li>
<a href="/myBlog/categories/vue/" class="animsition-link">
vue<small>(15)</small></a>
</li>
</ul>
</li>
<li>
<a class="sb-toggle-submenu">Links<span class="sb-caret"></span></a>
<ul class="sb-submenu">
<li>
<a target="_blank" rel="noopener" href="https://www.laoqiange.club/" class="animsition-link">
老千哥
</a>
</li>
</ul>
</li>
</ul>
<!-- Lists in Slidebars -->
<ul class="sb-menu secondary">
<!-- <li><a href="/myBlog/about.html" class="animsition-link" title="about">About</a></li> -->
<!-- <li><a href="/myBlog/atom.xml" class="animsition-link" title="rss">RSS</a></li> -->
</ul>
</div>
<!-- ============================ END Off-canvas navigation =========================== -->
<!-- ============================ #sb-site Main Page Wrapper =========================== -->
<div id="sb-site">
<!-- #sb-site - All page content should be contained within this id, except the off-canvas navigation itself -->
<!-- ============================ Header & Logo bar =========================== -->
<div id="navigation" class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<!-- Nav logo -->
<div class="logo">
<a href="/" title="Logo" class="animsition-link">
</a>
</div>
<!-- // Nav logo -->
<!-- Info-bar -->
<nav>
<ul class="nav">
<li>
<a href="/myBlog" class="animsition-link">
GRACE'S BLOG
</a>
</li>
<li class="nolink"><span>Always </span>Creative.</li>
<li>
<a href="/myBlog/archives" class="animsition-link" target="_blank" title="archive">archives</a>
</li>
<li>
<a href="/myBlog/about.html" title="about" target="_blank" class="animsition-link">about</a></li>
<li><a href="https://github.com/grace618/myBlog" title="Github" target="_blank"><i class="icon-github"></i></a>
</li>
<li><a href="https://twitter.com/SGVOshdkbJJjwj3" title="Twitter" target="_blank"><i
class="icon-twitter"></i></a></li>
<li><a href="https://www.facebook.com/" title="Facebook" target="_blank"><i
class="icon-facebook"></i></a></li>
</ul>
</nav>
<!--// Info-bar -->
</div>
<!-- // .container -->
<!-- <div class="learnmore sb-toggle-right">More</div> -->
<button type="button" class="navbar-toggle menu-icon sb-toggle-right" title="More">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar before"></span>
<span class="icon-bar main"></span>
<span class="icon-bar after"></span>
</button>
</div>
<!-- // .navbar-inner -->
</div>
<!-- ============================ Header & Logo bar =========================== -->
<!-- ============================ Hero Image =========================== -->
<section id="hero" class="scrollme">
<div class="container-fluid element-img" style="background: url(/myBlog/img/bg_img.jpg) no-repeat top center fixed;background-size: cover">
<div class="row">
<div class="col-xs-12 col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2 vertical-align cover boost text-center">
<div class="center-me animateme" data-when="exit" data-from="0" data-to="0.6" data-opacity="0" data-translatey="100">
<div>
<h2>
</h2>
<p>
</p>
<h2>
</h2>
<p>
自由的味道很硬,带着柏油和轮胎的气味,让人很想远行
</p>
</div>
</div>
</div>
<!-- // .col-md-12 -->
</div>
<div class="herofade beige-dk"></div>
</div>
</section>
<!-- Height spacing helper -->
<div class="heightblock"></div>
<!-- // End height spacing helper -->
<!-- ============================ END Hero Image =========================== -->
<!-- ============================ Content =========================== -->
<section id="intro">
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2 opening-statement">
<div class="col-md-12">
<h2>
<a href="/myBlog/2021/06/01/facebook,google,twitter广告转化跟踪/">
facebook/google/twitter广告转化跟踪
</a>
</h2>
<div>
<span class="post-meta">
<time datetime="2021-06-01T00:02:26.000Z" itemprop="datePublished">
2021-06-01
</time>
|
<a href='/myBlog/tags/js/'> <code>js</code> </a>
</span>
</div>
</div>
<div class="col-md-12">
<p style="overflow: hidden;">
<h4 id="google埋点"><a href="#google埋点" class="headerlink" title="google埋点"></a>google埋点</h4><p><a target="_blank" rel="noopener" href="https://support.google.com/analytics/topic/3544906?hl=zh-Hans&ref_topic=10094551">google分析</a>有两种方式:<br>1 Universal Analytics (旧版)<br>2 Google Analytics (新版)<br>使用gtag和Google Tag Manager(TMS)<a target="_blank" rel="noopener" href="https://support.google.com/tagmanager/answer/6103696?hl=en&ref_topic=3441530">谷歌代码跟踪管理器</a>两种方式 <a target="_blank" rel="noopener" href="https://support.google.com/tagmanager/answer/7582054">区别</a><br>Universal Analytics 是 <a target="_blank" rel="noopener" href="https://support.google.com/analytics/answer/10269537">Google Analytics(分析)</a>的早期版本,仅支持网站衡量功能。</p>
<p>创建账号后获取代码这是针对此媒体资源的全局网站代码 (gtag.js) 跟踪代码。请复制此代码,并将其作为第一个项目粘贴到您要跟踪的每个网页的 <HEAD> 标记中。如果您的网页上已经有全局网站代码,则只需将以下代码段中的 config 行添加到现有的全局网站代码。<a target="_blank" rel="noopener" href="https://support.google.com/tagmanager/answer/6106716?hl=zh-Hans">事件代码 </a> </p>
</p>
<p class="pull-right readMore">
<a href="/myBlog/2021/06/01/facebook,google,twitter广告转化跟踪/">
Read More...</a>
</p>
</div>
<div class="clearfix"></div>
<hr class="nogutter">
</div>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2 opening-statement">
<div class="col-md-12">
<h2>
<a href="/myBlog/2020/06/08/next.js学习笔记/">
next.js学习笔记
</a>
</h2>
<div>
<span class="post-meta">
<time datetime="2020-06-08T04:02:26.000Z" itemprop="datePublished">
2020-06-08
</time>
|
<a href='/myBlog/tags/next-js/'> <code>next.js</code> </a> ,
<a href='/myBlog/tags/ssr/'> <code>ssr</code> </a>
</span>
</div>
</div>
<div class="col-md-12">
<p style="overflow: hidden;">
<p>其实有用next.js+react+Material-UI写了一个公司官网,这里总结一下next.js能会碰到的问题。<br>1 安装 <code>npx create-next-app</code><br>2 _app.js _document.js server.js<br>3 css 这使用了一个名为styled-jsx的库。这是一个“ CSS-in-JS”库-它使您可以在React组件中编写CSS,并且CSS样式将受到限制(其他组件不会受到影响)。Next.js内置了对styled-jsx的支持,但是您也可以使用其他流行的CSS-in-JS库,例如styled-components或情感。</p>
</p>
<p class="pull-right readMore">
<a href="/myBlog/2020/06/08/next.js学习笔记/">
Read More...</a>
</p>
</div>
<div class="clearfix"></div>
<hr class="nogutter">
</div>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2 opening-statement">
<div class="col-md-12">
<h2>
<a href="/myBlog/2020/05/01/如何在vue中使用Iconfont网站的图标?/">
如何在vue中使用Iconfont网站的图标?
</a>
</h2>
<div>
<span class="post-meta">
<time datetime="2020-04-30T16:00:00.000Z" itemprop="datePublished">
2020-05-01
</time>
|
<a href='/myBlog/tags/vue/'> <code>vue</code> </a> ,
<a href='/myBlog/tags/iconfont/'> <code>iconfont</code> </a>
</span>
</div>
</div>
<div class="col-md-12">
<p style="overflow: hidden;">
<p>开发一个项目时总会碰到使用图标的问题,如果小图片太多,就要请求多个资源,使用雪碧图的话,更新图标和制作都挺麻烦的,并且使用时要各种定位找到相应位置。那么svg的优点是什么呢?<br>SVG 是一种基于 XML 语法的图像格式,全称是可缩放矢量图(Scalable Vector Graphics)。其他图像格式都是基于像素处理的,SVG 则是属于对图像的形状描述,所以它本质上是文本文件,体积较小,且不管放大多少倍都不会失真。而Iconfont中有大量图标可以使用,下面是我对使用Iconfont图标的经验总结。</p>
</p>
<p class="pull-right readMore">
<a href="/myBlog/2020/05/01/如何在vue中使用Iconfont网站的图标?/">
Read More...</a>
</p>
</div>
<div class="clearfix"></div>
<hr class="nogutter">
</div>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2 opening-statement">
<div class="col-md-12">
<h2>
<a href="/myBlog/2020/04/19/使用facebook sdk 和google sdk中的社交功能(点赞、分享和第三方登录)/">
使用facebook sdk 和google sdk中的社交功能(点赞、分享和第三方登录)——vue
</a>
</h2>
<div>
<span class="post-meta">
<time datetime="2020-04-18T16:00:00.000Z" itemprop="datePublished">
2020-04-19
</time>
|
<a href='/myBlog/tags/facebook/'> <code>facebook</code> </a> ,
<a href='/myBlog/tags/google/'> <code>google</code> </a> ,
<a href='/myBlog/tags/Social/'> <code>Social</code> </a>
</span>
</div>
</div>
<div class="col-md-12">
<p style="overflow: hidden;">
<p>因为公司的活动页面都是面向海外发行,所以可能要用到第三方登录和facebook点赞分享,首先是要找到官方SDK文档,然后是vue和第三方的交互</p>
</p>
<p class="pull-right readMore">
<a href="/myBlog/2020/04/19/使用facebook sdk 和google sdk中的社交功能(点赞、分享和第三方登录)/">
Read More...</a>
</p>
</div>
<div class="clearfix"></div>
<hr class="nogutter">
</div>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2 opening-statement">
<div class="col-md-12">
<h2>
<a href="/myBlog/2020/01/09/mongodb实现的jwt登录注册/">
使用node/koa/mongodb实现的jwt登录注册
</a>
</h2>
<div>
<span class="post-meta">
<time datetime="2020-01-08T16:00:00.000Z" itemprop="datePublished">
2020-01-09
</time>
|
<a href='/myBlog/tags/jwt/'> <code>jwt</code> </a> ,
<a href='/myBlog/tags/node/'> <code>node</code> </a>
</span>
</div>
</div>
<div class="col-md-12">
<p style="overflow: hidden;">
<p>① <strong><em>思路</em></strong> :<br> 实现登录注册有三种方式 session和jwt 和oAuth(第三方登录) 我这里选用jwt</p>
<p>② <strong><em>需要</em></strong> :<br> 中间件 koa-jwt 权限路由验证<br> jsonwebtoken 生成token<br>
</p>
<p class="pull-right readMore">
<a href="/myBlog/2020/01/09/mongodb实现的jwt登录注册/">
Read More...</a>
</p>
</div>
<div class="clearfix"></div>
<hr class="nogutter">
</div>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2 opening-statement">
<div class="col-md-12">
<h2>
<a href="/myBlog/2019/11/26/vue运行机制笔记/">
vue内部运行机制浅析
</a>
</h2>
<div>
<span class="post-meta">
<time datetime="2019-11-25T16:00:00.000Z" itemprop="datePublished">
2019-11-26
</time>
|
<a href='/myBlog/tags/js/'> <code>js</code> </a>
</span>
</div>
</div>
<div class="col-md-12">
<p style="overflow: hidden;">
<p>当你把一个普通的 JavaScript 对象传入 Vue 实例作为 data 选项,Vue 将遍历此对象所有的 property,并使用 Object.defineProperty 把这些 property 全部转为 getter/setter。Object.defineProperty 是 ES5 中一个无法 shim 的特性,这也就是 Vue 不支持 IE8 以及更低版本浏览器的原因。</p>
<p>这些 getter/setter 对用户来说是不可见的,但是在内部它们让 Vue 能够追踪依赖,在 property 被访问和修改时通知变更。这里需要注意的是不同浏览器在控制台打印数据对象时对 getter/setter 的格式化并不同,所以建议安装 vue-devtools 来获取对检查数据更加友好的用户界面。</p>
</p>
<p class="pull-right readMore">
<a href="/myBlog/2019/11/26/vue运行机制笔记/">
Read More...</a>
</p>
</div>
<div class="clearfix"></div>
<hr class="nogutter">
</div>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2 opening-statement">
<div class="col-md-12">
<h2>
<a href="/myBlog/2019/11/25/阅读vue文档学习笔记之需要注意的几个地方/">
阅读vue文档学习笔记之需要注意的几个地方
</a>
</h2>
<div>
<span class="post-meta">
<time datetime="2019-11-25T04:02:26.000Z" itemprop="datePublished">
2019-11-25
</time>
|
<a href='/myBlog/tags/vue/'> <code>vue</code> </a>
</span>
</div>
</div>
<div class="col-md-12">
<p style="overflow: hidden;">
<p>v2.6</p>
<h4 id="模板语法"><a href="#模板语法" class="headerlink" title="模板语法"></a>模板语法</h4><p>可以用方括号括起来的 JavaScript 表达式作为一个指令的参数:<br><code><a v-bind:[attributeName]="url"> ... </a></code></p>
<p>同样地,你可以使用动态参数为一个动态的事件名绑定处理函数:<br><code><a v-on:[eventName]="doSomething"> ... </a></code></p>
</p>
<p class="pull-right readMore">
<a href="/myBlog/2019/11/25/阅读vue文档学习笔记之需要注意的几个地方/">
Read More...</a>
</p>
</div>
<div class="clearfix"></div>
<hr class="nogutter">
</div>
</div>
<nav class="pagination" role="pagination">
<a class="pull-right" href="/myBlog/page/2/">Older Posts →</a>
</nav>
</div>
</section>
<section id="statement">
<div class="container text-center wow fadeInUp" data-wow-delay="0.5s">
<div class="row">
<p>
</p>
</div>
</div>
</section>
<!-- ============================ END Content =========================== -->
<!-- ============================ Footer =========================== -->
<footer>
<div class="container">
<div class="copy">
<p>
© 2014
<script>
new Date().getFullYear() > 2010 && document.write("-" + new Date().getFullYear());
</script>, Content By
grace. All Rights Reserved.
</p>
<p>Theme By <a href="https://grace618.github.io/myBlog/" style="color: #767D84">Grace</a></p>
</div>
<div class="social">
<ul>
<li><a href="https://github.com/grace618/myBlog" title="Github" target="_blank"><i class="icon-github"></i></a>
</li>
<li><a href="https://twitter.com/SGVOshdkbJJjwj3" title="Twitter" target="_blank"><i
class="icon-twitter"></i></a> </li>
<li><a href="https://www.facebook.com/" title="Facebook" target="_blank"><i
class="icon-facebook"></i></a> </li>
</ul>
</div>
<div class="clearfix"> </div>
</div>
</footer>
<!-- ============================ END Footer =========================== -->
<!-- Load our scripts -->
<!-- Resizable 'on-demand' full-height hero -->
<script type="text/javascript">
var resizeHero = function () {
var hero = $(".cover,.heightblock"),
window1 = $(window);
hero.css({
"height": window1.height()
});
};
resizeHero();
$(window).resize(function () {
resizeHero();
});
</script>
<script src="/myBlog/js/plugins.min.js"></script>
<!-- Bootstrap core and concatenated plugins always load here -->
<script src="/myBlog/js/scripts.js"></script><!-- Theme scripts -->
<link rel="stylesheet" href="/myBlog/fancybox/jquery.fancybox.css" media="screen" type="text/css">
<script src="/myBlog/fancybox/jquery.fancybox.pack.js"></script>
<script type="text/javascript">
$('#intro').find('img').each(function () {
var alt = this.alt;
if (alt) {
$(this).after('<span class="caption" style="display:none">' + alt + '</span>');
}
$(this).wrap('<a href="' + this.src + '" title="' + alt + '" class="fancybox" rel="gallery" />');
});
(function ($) {
$('.fancybox').fancybox();
})(jQuery);
</script>
</body>
</html>