-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
566 lines (331 loc) · 20.3 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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="referrer" content="unsafe-url">
<meta name="google-site-verification" content="" />
<title>blog</title>
<meta name="author" content="JIEL">
<meta name="description" content="hello world">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta property="og:site_name" content="blog"/>
<link href="/apple-touch-icon-precomposed.png" sizes="180x180" rel="apple-touch-icon-precomposed">
<link rel="alternate" href="/atom.xml" title="blog" type="application/atom+xml">
<link rel="stylesheet" href="/css/main.css">
<link rel="stylesheet" href="/css/disqusjs.css">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<!--
<link rel="stylesheet" href="https://unpkg.com/@highlightjs/[email protected]/styles/default.min.css">
<script src="https://unpkg.com/@highlightjs/[email protected]/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script> -->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-159221418-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-159221418-2');
</script>
<script src="/js/disqus.js"></script>
<meta name="generator" content="Hexo 5.4.0"></head>
<body>
<a id="top"></a>
<div id="main">
<div class="main-ctnr">
<nav class="navbar">
<div class="nav-container">
<div class="nav navbar-nav navbar-left">
<div class="navbar-header">
<a href="/" class="navbar-brand">^_^"</a>
</div>
</div>
<div class="nav navbar-nav navbar-right">
<div class="dropdown">
<a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg>
</a>
<base href="/">
<ul class="dropdown-content">
<div>
<a target="_blank" rel="noopener" href="https://github.com/eijil/">
GitHub
</a>
</div>
</ul>
</div>
<div class="archives"><a href="/archives">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-archive"><polyline points="21 8 21 21 3 21 3 8"></polyline><rect x="1" y="3" width="22" height="5"></rect><line x1="10" y1="12" x2="14" y2="12"></line></svg>
</a></div>
</div>
</div>
</nav>
<ul class="posts">
<li class="post-item">
<h1 class="index-title">
<a href="/2022/03/webgl-shader/">
webGL基础-着色器
</a>
</h1>
<div class="excerpt">
不会3D的厨师不是一个好司机,这个时代不卷就只能去开滴滴。 在元宇宙概念的背景下,上级领导也要求做点技术储备,在学习了一些常用的Web3D框架(babylonjs,threejs)后, 好奇于它们的底层原理,所以去了解下webGL的知识,本文主要介绍WebGl中着色器的原理。
webGLweb...
</div>
<div class="index-meta">
<time datetime="2022-03-28T02:00:00.000Z" itemprop="datePublished">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-calendar"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>
2022-03-28
</time>
<div class="reading">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>
<span id="busuanzi_value_page_pv">…</span>
</div>
</div>
</li>
<li class="post-item">
<h1 class="index-title">
<a href="/2021/12/uitest/">
UI自动化测试实践
</a>
</h1>
<div class="excerpt">
前言相信大多数前端团队在工作中都思考过UI自动测试的方案(特别是发生过线上事故的时候),虽然都知道增加测试能尽量减少事故率,但其实想落地并没那么容易,原因还是投入的成本通常会大于收益。那么这次我为什么要想尝试去做呢?主要还是觉得是使用场景上比较契合,这个下面展开。
UI自动化测试其实主要可以分...
</div>
<div class="index-meta">
<time datetime="2021-12-30T08:42:49.513Z" itemprop="datePublished">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-calendar"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>
2021-12-30
</time>
<div class="reading">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>
<span id="busuanzi_value_page_pv">…</span>
</div>
</div>
</li>
<li class="post-item">
<h1 class="index-title">
<a href="/2021/12/gpujs/">
使用GPU.js提升Javascript性能
</a>
</h1>
<div class="excerpt">
我们都知道Javascript是一种单线程的语言,当我们需要执行大量复杂计算时,单线程性能就显得捉襟见肘,当然Javascript也有web worker支持开启多线程,但这也是使用了CPU的性能还需要自己处理并行逻辑,显得有些麻烦。除了CPU浏览器也可以使用GPU来处理程序,我们熟悉的Web...
</div>
<div class="index-meta">
<time datetime="2021-12-30T08:40:25.250Z" itemprop="datePublished">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-calendar"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>
2021-12-30
</time>
<div class="reading">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>
<span id="busuanzi_value_page_pv">…</span>
</div>
</div>
</li>
<li class="post-item">
<h1 class="index-title">
<a href="/2021/12/commit/">
规范GIT代码提交信息&自动化版本管理
</a>
</h1>
<div class="excerpt">
前言git作为一个开发人员必不可少的工具,代码提交也是日常一个非常频繁的操作,如果你或你的团队目前对提交信息还没有一个规范或约束,那么你有必要看看本文的内容了。
为什么要规范提交信息首先规范提交信息肯定是有必要的,简单总结下几点好处:
让项目的维护或使用人员能了解提交了哪些更改
清晰的历史记...
</div>
<div class="index-meta">
<time datetime="2021-12-30T08:40:25.249Z" itemprop="datePublished">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-calendar"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>
2021-12-30
</time>
<div class="reading">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>
<span id="busuanzi_value_page_pv">…</span>
</div>
</div>
</li>
<li class="post-item">
<h1 class="index-title">
<a href="/2021/03/permissions/">
[译] 在Javascript中处理用户权限
</a>
</h1>
<div class="excerpt">
在开发用户界面的时候经常需要处理一些用户权限的逻辑,例如管理员和普通访客展示界面是不一样的等,您如何在前端处理这种逻辑?本文将介绍如何以一种优雅的方式来处理,或许可以给你提供一些思路
原文地址:https://css-tricks.com/handling-user-permissions-...
</div>
<div class="index-meta">
<time datetime="2021-03-02T07:51:00.000Z" itemprop="datePublished">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-calendar"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>
2021-03-02
</time>
<div class="reading">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>
<span id="busuanzi_value_page_pv">…</span>
</div>
</div>
</li>
<li class="post-item">
<h1 class="index-title">
<a href="/2021/02/daxigua/">
使用Phaser3+Matter.js实现“合成大西瓜”游戏
</a>
</h1>
<div class="excerpt">
最近有一款“合成大西瓜”的小游戏有点火,试玩了一下,玩法比较简单,实现难度也不大,所以参照游戏原型自己实现了一下,游戏开发主要使用了Phaser游戏框架,本文主要分享游戏功能的具体实现,对框架使用的API不会做过多介绍。
玩法分析首先简单介绍下游戏的玩法:控制水果从上方掉落,两个相同水果会合成...
</div>
<div class="index-meta">
<time datetime="2021-02-04T16:00:00.000Z" itemprop="datePublished">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-calendar"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>
2021-02-05
</time>
<div class="reading">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>
<span id="busuanzi_value_page_pv">…</span>
</div>
</div>
</li>
<li class="post-item">
<h1 class="index-title">
<a href="/2020/07/stickynav/">
移动端吸顶导航组件的实现
</a>
</h1>
<div class="excerpt">
前言吸顶导航是营销会场类最常用的组件之一, 现在的会场页面是越来越长,如果从第一屏手动滑到最后一屏,还是一个挺累的操作,所以吸顶导航还是很有必要存在的,组件很常见,但是开源的不多,而且大多是PC版,几乎都不能满足业务的需求,所以决定自己写一个。
先看下组件效果 demo
功能拆解梳理下组件需...
</div>
<div class="index-meta">
<time datetime="2020-07-01T07:51:00.000Z" itemprop="datePublished">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-calendar"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>
2020-07-01
</time>
<div class="reading">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>
<span id="busuanzi_value_page_pv">…</span>
</div>
</div>
</li>
<li class="post-item">
<h1 class="index-title">
<a href="/2020/03/expect/">
使用Expect快速登录服务器
</a>
</h1>
<div class="excerpt">
前段时间开发中台项目的时候经常需要频繁登录生产服务器去修改代码,但通常企业为了服务器安全,需要通过跳板机来链接,如下图,每次都需要先登录两台服务器才能链接到正式服务器,非常繁琐,这时候expect就派上用场了
expect是什么expect就是一个能帮我们自动化执行交互式脚本的命令行工具
安...
</div>
<div class="index-meta">
<time datetime="2020-03-12T16:00:00.000Z" itemprop="datePublished">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-calendar"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>
2020-03-13
</time>
<div class="reading">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>
<span id="busuanzi_value_page_pv">…</span>
</div>
</div>
</li>
<li class="post-item">
<h1 class="index-title">
<a href="/2016/06/taoquanquan/">
H5游戏开发:套圈圈
</a>
</h1>
<div class="excerpt">
前言套圈圈游戏相信很多人小时候都玩过,玩法简单就不用介绍了,本文主要分享下开发过程中遇到的问题和解决思路
游戏体验地址:
技术选型Phaser & P2游戏框架原理都是差不多的,基本就是创建场景,精灵,主循环等等,只是每个框架写法不同而已,所以在选择框架的时候我还是考虑以下几点,文...
</div>
<div class="index-meta">
<time datetime="2016-06-02T16:00:00.000Z" itemprop="datePublished">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-calendar"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>
2016-06-03
</time>
<div class="reading">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>
<span id="busuanzi_value_page_pv">…</span>
</div>
</div>
</li>
<li class="post-item">
<h1 class="index-title">
<a href="/2016/06/use-ssh/">
Use Ssh
</a>
</h1>
<div class="excerpt">
SSH是一种连接服务器的方式,使用SSH可以不必每次都输入用户名和密码
SSH的使用一、 Add SSH key to GithubMac1. 打开命令行工具,输入以下内容,替换你的邮箱名12$ssh-keygen -t rsa -C "[email protected]&...
</div>
<div class="index-meta">
<time datetime="2016-06-02T07:51:00.000Z" itemprop="datePublished">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-calendar"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>
2016-06-02
</time>
<div class="reading">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>
<span id="busuanzi_value_page_pv">…</span>
</div>
</div>
</li>
</ul>
<ul class="pager">
<span class="page-number current">1</span>
</ul>
</div>
</div>
<footer class="page-footer"></div>
<div class="right-foot">
<div class="firstrow">
<a href="#top" target="_self">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up"><line x1="12" y1="19" x2="12" y2="5"></line><polyline points="5 12 12 5 19 12"></polyline></svg>
</a>
<!-- © eijil 2015-2021 -->
</div>
<!-- <div class="secondrow">
<a target="_blank" rel="noopener" href="https://frankenstein-ashen.now.sh/">
Guestbook
</a>
</div> -->
</div>
</div>
</footer>
<script src="/js/zoom-image.js"></script>
<script type="text/javascript">
var imgArr = document.getElementsByTagName('img')
for (var i = 0; i < imgArr.length; i += 1) {
zoom(imgArr[i])
}
// dropdown scripts
function $(s) { return document.querySelector(s)}
function $$(s) { return document.querySelectorAll(s) }
var dropDownElArr = $$('.dropdown')
for (var i = 0; i < dropDownElArr.length; i += 1) {
dropDownElArr[i].addEventListener('click', function(event) {
var content = this.querySelector('.dropdown-content')
event.stopPropagation()
if (content.className.indexOf('open') < 0) {
content.classList.add('open')
} else {
content.classList.remove('open')
}
})
}
document.body.addEventListener('click', function() {
var dropDownContentElArr = $$('.dropdown-content')
for (var i = 0; i < dropDownContentElArr.length; i += 1) {
dropDownContentElArr[i].classList.remove('open')
}
})
</script>
</body>
</html>