-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathatom.xml
More file actions
494 lines (239 loc) · 16.4 KB
/
atom.xml
File metadata and controls
494 lines (239 loc) · 16.4 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
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>追梦</title>
<link href="/atom.xml" rel="self"/>
<link href="https://yidreamc.github.io/"/>
<updated>2018-10-19T13:16:10.457Z</updated>
<id>https://yidreamc.github.io/</id>
<author>
<name>yidreamc</name>
</author>
<generator uri="http://hexo.io/">Hexo</generator>
<entry>
<title>js防抖实现</title>
<link href="https://yidreamc.github.io/2018/10/19/%E9%98%B2%E6%8A%96%E5%92%8C%E8%8A%82%E6%B5%81/"/>
<id>https://yidreamc.github.io/2018/10/19/防抖和节流/</id>
<published>2018-10-19T21:13:12.000Z</published>
<updated>2018-10-19T13:16:10.457Z</updated>
<summary type="html">
<p>防抖和节流都是为了限制函数的执行频次,达到节约资源的目的。</p>
<ul>
<li>防抖:任务频繁触发的情况下,只有触发任务的时间超过一定时间间隔才会执行。</li>
<li>节流:在指定的时间间隔内执行一次</li>
</ul>
<h4
</summary>
</entry>
<entry>
<title>es6 export default踩坑</title>
<link href="https://yidreamc.github.io/2018/10/11/es6%20export%20default%E8%B8%A9%E5%9D%91/"/>
<id>https://yidreamc.github.io/2018/10/11/es6 export default踩坑/</id>
<published>2018-10-11T22:23:16.000Z</published>
<updated>2018-10-19T13:16:10.453Z</updated>
<summary type="html">
<p>先说一下遇到的问题</p>
<pre><code class="js">// a.js
let test = function() {
}
export default {
test
}
</code></pre>
<pre><code
</summary>
</entry>
<entry>
<title>前端安全</title>
<link href="https://yidreamc.github.io/2018/09/20/%E5%89%8D%E7%AB%AF%E5%AE%89%E5%85%A8/"/>
<id>https://yidreamc.github.io/2018/09/20/前端安全/</id>
<published>2018-09-20T15:50:16.000Z</published>
<updated>2018-10-19T13:16:10.453Z</updated>
<summary type="html">
<p>虽然现在的浏览器和框架对这方面防范已经很完善了,基本都遇不到了,但是面试还是会问啊。</p>
<h3 id="XSS"><a href="#XSS" class="headerlink"
</summary>
</entry>
<entry>
<title>自己实现call,apply,bind</title>
<link href="https://yidreamc.github.io/2018/09/16/%E8%87%AA%E5%B7%B1%E5%AE%9E%E7%8E%B0call-apply-bind/"/>
<id>https://yidreamc.github.io/2018/09/16/自己实现call-apply-bind/</id>
<published>2018-09-16T23:54:51.000Z</published>
<updated>2018-10-19T13:16:10.453Z</updated>
<summary type="html">
<p>js的<code>call</code>和<code>apply</code>都可以改变this指向,调用函数,两者的作用相同,只是传参的方式不同。<code>bind</code>可以改变this指向,创建函数。也就是说<code>call</code>和<code>ap
</summary>
<category term="js" scheme="https://yidreamc.github.io/tags/js/"/>
</entry>
<entry>
<title>解决expo不会挑选网络的问题</title>
<link href="https://yidreamc.github.io/2018/09/04/%E8%A7%A3%E5%86%B3expo%E4%B8%8D%E4%BC%9A%E6%8C%91%E9%80%89%E7%BD%91%E7%BB%9C%E7%9A%84%E9%97%AE%E9%A2%98/"/>
<id>https://yidreamc.github.io/2018/09/04/解决expo不会挑选网络的问题/</id>
<published>2018-09-04T22:31:17.000Z</published>
<updated>2018-10-19T13:16:10.457Z</updated>
<summary type="html">
<p><code>expo</code>是一组工具,库和服务,可让通过编写<code>JavaScript</code>来构建原生<code>iOS</code>和<code>Android</code>应用程序,现在<code>react-native</code>中就用的他。
</summary>
</entry>
<entry>
<title>中缀表达式的计算</title>
<link href="https://yidreamc.github.io/2018/08/31/%E4%B8%AD%E7%BC%80%E8%A1%A8%E8%BE%BE%E5%BC%8F%E7%9A%84%E8%AE%A1%E7%AE%97/"/>
<id>https://yidreamc.github.io/2018/08/31/中缀表达式的计算/</id>
<published>2018-08-31T17:59:52.000Z</published>
<updated>2018-10-19T13:16:10.453Z</updated>
<summary type="html">
<p>常见的算式比如<code>2+3</code>、<code>4*5+2</code>这种都是中缀表达式,特点是运算符在操作数的中间,这种表达式对人来说还是比较有好的,但对于程序来说就不太有好了,因为运算符号包含了优先级,而且还有括号先计算这些规则。首先声明一下,这种表达式只
</summary>
</entry>
<entry>
<title>Number()、parseInt()、parseFloat()区别</title>
<link href="https://yidreamc.github.io/2018/08/28/Number-%E3%80%81parseInt-%E3%80%81parseFloat-%E5%8C%BA%E5%88%AB/"/>
<id>https://yidreamc.github.io/2018/08/28/Number-、parseInt-、parseFloat-区别/</id>
<published>2018-08-28T19:28:56.000Z</published>
<updated>2018-10-19T13:16:10.453Z</updated>
<summary type="html">
<p>这三个函数都可以把非数值转换成数值</p>
<h3 id="Number"><a href="#Number" class="headerlink"
</summary>
<category term="js" scheme="https://yidreamc.github.io/tags/js/"/>
</entry>
<entry>
<title>worktree解决多支依赖不同的问题</title>
<link href="https://yidreamc.github.io/2018/08/24/worktree%E8%A7%A3%E5%86%B3%E5%A4%9A%E6%94%AF%E4%BE%9D%E8%B5%96%E4%B8%8D%E5%90%8C%E7%9A%84%E9%97%AE%E9%A2%98/"/>
<id>https://yidreamc.github.io/2018/08/24/worktree解决多支依赖不同的问题/</id>
<published>2018-08-24T13:09:59.000Z</published>
<updated>2018-10-19T13:16:10.453Z</updated>
<summary type="html">
<p>记得刚来公司的时候有人在群里提出了一个这样的问题<br><img
</summary>
<category term="其他" scheme="https://yidreamc.github.io/tags/%E5%85%B6%E4%BB%96/"/>
</entry>
<entry>
<title>自己实现一个模态框</title>
<link href="https://yidreamc.github.io/2018/08/23/%E8%87%AA%E5%B7%B1%E5%AE%9E%E7%8E%B0%E4%B8%80%E4%B8%AA%E6%A8%A1%E6%80%81%E6%A1%86/"/>
<id>https://yidreamc.github.io/2018/08/23/自己实现一个模态框/</id>
<published>2018-08-23T20:04:31.000Z</published>
<updated>2018-10-19T13:16:10.453Z</updated>
<summary type="html">
<p>面试中被问到如何实现一个模态框,当场懵逼,现在这么多的开源样式库,组件库,在这么方便的条件下我从来没有考虑过这种问题。<br>回来之后静下心来仔细考虑了一下这个问题,其实也没有什么难的,给我一定的时间我应该可以在不查资料的情况下完成。 就抽空自己做了一个。<a
</summary>
<category term="css" scheme="https://yidreamc.github.io/tags/css/"/>
</entry>
<entry>
<title>搭建travis-ci的本地构建环境</title>
<link href="https://yidreamc.github.io/2018/08/20/%E6%90%AD%E5%BB%BAtravis-ci%E7%9A%84%E6%9C%AC%E5%9C%B0%E6%9E%84%E5%BB%BA%E7%8E%AF%E5%A2%83/"/>
<id>https://yidreamc.github.io/2018/08/20/搭建travis-ci的本地构建环境/</id>
<published>2018-08-20T21:58:36.000Z</published>
<updated>2018-10-19T13:16:10.453Z</updated>
<summary type="html">
<p>前端项目我一直是用travis-ci实现ci/cd的,平时出现的一些错误在日志上都可以直接看到,然后调整解决就行,但今天这个错误在web页的日志上无法看出来,而且我在本地环境构建没有任何问题,于是我想在本地搭建一个travis-ci的构建环境来看一下到底是哪里的错误。<br
</summary>
</entry>
<entry>
<title>js加载的顺序和时间问题</title>
<link href="https://yidreamc.github.io/2018/08/15/js%E5%8A%A0%E8%BD%BD%E7%9A%84%E9%A1%BA%E5%BA%8F%E5%92%8C%E6%97%B6%E9%97%B4%E9%97%AE%E9%A2%98/"/>
<id>https://yidreamc.github.io/2018/08/15/js加载的顺序和时间问题/</id>
<published>2018-08-15T23:24:02.000Z</published>
<updated>2018-10-19T13:16:10.453Z</updated>
<summary type="html">
<p>想写一个Chrome插件,但是在js加载时间上掌握不好,或者说以前从来没有考虑过这方面的问题,特意查了一下记录一下。</p>
<h3 id="多个js文件加载顺序"><a href="#多个js文件加载顺序" class="headerlink"
</summary>
</entry>
<entry>
<title>js正则表达式</title>
<link href="https://yidreamc.github.io/2018/08/15/js%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F/"/>
<id>https://yidreamc.github.io/2018/08/15/js正则表达式/</id>
<published>2018-08-15T19:10:49.000Z</published>
<updated>2018-10-19T13:16:10.453Z</updated>
<summary type="html">
<p>今天改了好多bug,用到了很多次正则表达式,我从来就没有系统看过正则表达式的知识,趁现在暂时没有其他的bug,正好看看正则表达式。</p>
<h3 id="创建正则表达式"><a href="#创建正则表达式" class="headerlink"
</summary>
<category term="js" scheme="https://yidreamc.github.io/tags/js/"/>
</entry>
<entry>
<title>乱设置环境变量的坑</title>
<link href="https://yidreamc.github.io/2018/07/31/%E4%B9%B1%E8%AE%BE%E7%BD%AE%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F%E7%9A%84%E5%9D%91/"/>
<id>https://yidreamc.github.io/2018/07/31/乱设置环境变量的坑/</id>
<published>2018-07-31T14:16:38.000Z</published>
<updated>2018-10-19T13:16:10.453Z</updated>
<summary type="html">
<p>记录一次采坑记录</p>
<p>运行vue项目的时候报了一个错误</p>
<pre><code>getaddrinfo ENOTFOUND
</summary>
</entry>
<entry>
<title>maven多配置文件</title>
<link href="https://yidreamc.github.io/2018/07/06/maven%E5%A4%9A%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6/"/>
<id>https://yidreamc.github.io/2018/07/06/maven多配置文件/</id>
<published>2018-07-06T20:18:42.000Z</published>
<updated>2018-10-19T13:16:10.453Z</updated>
<summary type="html">
<p>我也不知道该怎么总结这篇文章的题目,事情是这样的,在开发的过程中我需要一个插件,但是在生产环境中我不需要这个插件,我想了一下maven的那些作用域,竟然没有可以解决这个问题的。</p>
<p>这个问题可以通过配置两份<code>pom.xml</code>来实现,我不知道行
</summary>
</entry>
<entry>
<title>合成10</title>
<link href="https://yidreamc.github.io/2018/06/10/%E5%90%88%E6%88%9010/"/>
<id>https://yidreamc.github.io/2018/06/10/合成10/</id>
<published>2018-06-10T21:09:17.000Z</published>
<updated>2018-10-19T13:16:10.453Z</updated>
<summary type="html">
<p>合成10是一个DOM小游戏,创意并不是我的,这个是我很久以前在网上看到的,他的游戏机制类似于1024。</p>
<p><img src="/img/Screenshot_2018-06-10-21-17-09-70.png"
</summary>
</entry>
<entry>
<title>java自定义排序</title>
<link href="https://yidreamc.github.io/2018/05/06/java%E8%87%AA%E5%AE%9A%E4%B9%89%E6%8E%92%E5%BA%8F/"/>
<id>https://yidreamc.github.io/2018/05/06/java自定义排序/</id>
<published>2018-05-06T22:42:49.000Z</published>
<updated>2018-10-19T13:16:10.453Z</updated>
<summary type="html">
<p>遇到过很多次了,种于狠下心总结一下,免得以后每次都要再找。<br>java自定义排序有两个Object对象,o1和o2(this相当于o1),如果返回负值则把o1插到o2前面,如果返回正值,把o1放到o2后面,如果返回0保持原来顺序不变。</p>
<p>排序有两种实现方式,
</summary>
</entry>
<entry>
<title>spring boot使用多线程</title>
<link href="https://yidreamc.github.io/2018/04/24/spring-boot%E4%BD%BF%E7%94%A8%E5%A4%9A%E7%BA%BF%E7%A8%8B/"/>
<id>https://yidreamc.github.io/2018/04/24/spring-boot使用多线程/</id>
<published>2018-04-24T09:20:48.000Z</published>
<updated>2018-10-19T13:16:10.453Z</updated>
<summary type="html">
<p>最近遇到一个难题,我需要在boot项目中开一个监视器,监视器中需要用到dao接口,spring boot的dao是依赖注入进去的,并不能手动new出来,如果是常规的方法先建线程的话,dao注入不进去,查了很多网站,想了很多办法最后找到了解决办法。在这里记录一下。<a
</summary>
</entry>
<entry>
<title>spring-boot注入静态变量</title>
<link href="https://yidreamc.github.io/2018/04/06/spring-boot%E6%B3%A8%E5%85%A5%E9%9D%99%E6%80%81%E5%8F%98%E9%87%8F/"/>
<id>https://yidreamc.github.io/2018/04/06/spring-boot注入静态变量/</id>
<published>2018-04-06T11:24:41.000Z</published>
<updated>2018-10-19T13:16:10.453Z</updated>
<summary type="html">
<p>之前遇到过一次,当时刚开始玩spring-boot不知道该怎么搜索关键字没解决,今天又遇到了。<br>一个项目需要配置一个系统代理,需要在spring的启动文件里配置,因为代码是开源的,但代理的地址我不太想让别人看到,写到配置文件里注入的时候遇到了困难。<br>知道关键字之
</summary>
</entry>
<entry>
<title>关于docker部署spring-boot的尝试</title>
<link href="https://yidreamc.github.io/2018/04/01/%E5%85%B3%E4%BA%8Edocker%E9%83%A8%E7%BD%B2spring-boot%E7%9A%84%E5%B0%9D%E8%AF%95/"/>
<id>https://yidreamc.github.io/2018/04/01/关于docker部署spring-boot的尝试/</id>
<published>2018-04-01T07:41:02.000Z</published>
<updated>2018-10-19T13:16:10.453Z</updated>
<summary type="html">
<p>最近搬家一个服务器,发现要安装好多好多的环境,相当麻烦。<br>以前我也经常重装电脑,后来觉得麻烦就把我的开发环境都弄到了虚拟机里面,一方面linux环境,另一方面也不用反复重装。想到这里我想到了被我遗忘很久的docker了。<br>可以在服务器上只安装docker,然后以
</summary>
</entry>
<entry>
<title>关于掌上联创的探索</title>
<link href="https://yidreamc.github.io/2018/03/25/%E5%85%B3%E4%BA%8E%E6%8E%8C%E4%B8%8A%E8%81%94%E5%88%9B%E7%9A%84%E6%8E%A2%E7%B4%A2/"/>
<id>https://yidreamc.github.io/2018/03/25/关于掌上联创的探索/</id>
<published>2018-03-25T03:51:00.000Z</published>
<updated>2018-10-19T13:16:10.453Z</updated>
<summary type="html">
<p>我们学校使用了联创打印系统,应该好多学校都在用,他们提供了一个客户端,我们下载之后在本地打印,之后到打印机刷卡取走打印的东西。<br>这个系统对于以前去学校外面排队打印而言相当方便。<br>我使用这个系统的主要场景就是打印课件,很多时候老师前天把课件发给我们,第二天讲课会用
</summary>
</entry>
</feed>