-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathatom.xml
468 lines (284 loc) · 20.4 KB
/
atom.xml
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
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>恍惚</title>
<subtitle>人必须坚持不懈地生成和创造才能臻于完满</subtitle>
<link href="https://www.liuzx.me/atom.xml" rel="self"/>
<link href="https://www.liuzx.me/"/>
<updated>2022-08-31T02:48:27.498Z</updated>
<id>https://www.liuzx.me/</id>
<author>
<name>恍惚</name>
</author>
<generator uri="https://hexo.io/">Hexo</generator>
<entry>
<title></title>
<link href="https://www.liuzx.me/2022/08/31/Docker%E4%BB%8B%E7%BB%8D/"/>
<id>https://www.liuzx.me/2022/08/31/Docker%E4%BB%8B%E7%BB%8D/</id>
<published>2022-08-31T02:16:23.414Z</published>
<updated>2022-08-31T02:48:27.498Z</updated>
<summary type="html"><h1 id="Docker-介绍"><a href="#Docker-介绍" class="headerlink" title="Docker 介绍"></a>Docker 介绍</h1><ol>
<li>虚拟化技术与容器技术<ol>
<li>虚拟化技术的理解<ol>
<li>它是一种将计算机物理资源抽象化,转化成计算机虚拟资源以提供给程序使用</li>
</ol>
</li>
<li>虚拟化技术很好地解决了跨平台兼容的问题</li>
<li>虚拟化只是提高了计算机计算机资源的利用率,并不会减少资源的占用。</li>
<li>资源隔离<ol>
<li>将程序分隔在不同的运行环境中</li>
</ol>
</li>
<li>容器技术<ol>
<li>操作系统提供接口,让多个应用程序在不同的环境中独立运行,互不干扰。</li>
</ol>
</li>
</ol>
</li>
</ol></summary>
</entry>
<entry>
<title></title>
<link href="https://www.liuzx.me/2022/08/27/Swiper%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95/"/>
<id>https://www.liuzx.me/2022/08/27/Swiper%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95/</id>
<published>2022-08-26T23:59:50.614Z</published>
<updated>2022-08-26T23:59:50.897Z</updated>
<summary type="html"><h1 id="Swiper使用方法"><a href="#Swiper使用方法" class="headerlink" title="Swiper使用方法"></a>Swiper使用方法</h1><ol>
<li>npm i</summary>
</entry>
<entry>
<title></title>
<link href="https://www.liuzx.me/2022/08/26/%E5%BC%82%E6%AD%A5%E6%93%8D%E4%BD%9C/"/>
<id>https://www.liuzx.me/2022/08/26/%E5%BC%82%E6%AD%A5%E6%93%8D%E4%BD%9C/</id>
<published>2022-08-26T11:55:34.489Z</published>
<updated>2022-08-26T11:55:34.712Z</updated>
<summary type="html"><h1 id="异步操作"><a href="#异步操作" class="headerlink"</summary>
</entry>
<entry>
<title></title>
<link href="https://www.liuzx.me/2022/08/26/this%E5%85%B3%E9%94%AE%E5%AD%97/"/>
<id>https://www.liuzx.me/2022/08/26/this%E5%85%B3%E9%94%AE%E5%AD%97/</id>
<published>2022-08-26T11:55:15.407Z</published>
<updated>2022-08-26T13:37:45.911Z</updated>
<summary type="html"><h1 id="this-关键字"><a href="#this-关键字" class="headerlink" title="this 关键字"></a>this 关键字</h1><ol>
<li><p>this 总是返回一个对象。</p>
</li>
<li><p>this 的值为属性或方法当前所在的对象(环境)。</p>
</li>
<li><p>使用场合 1. 在全局环境下,this 的值为顶层环境 window。 2. 在构造函数中,this 指向实例对象。 3. 在对象的方法中,this 指向当前方法所在的对象,但如果对一个对象进行赋值时,this 的指向就会改变了。</p></summary>
</entry>
<entry>
<title></title>
<link href="https://www.liuzx.me/2022/08/26/Promise%E5%AF%B9%E8%B1%A1/"/>
<id>https://www.liuzx.me/2022/08/26/Promise%E5%AF%B9%E8%B1%A1/</id>
<published>2022-08-26T11:54:56.482Z</published>
<updated>2022-08-26T13:35:54.987Z</updated>
<summary type="html"><h1 id="Promise-对象"><a href="#Promise-对象" class="headerlink" title="Promise 对象"></a>Promise 对象</h1><ol>
<li>Promise 是一种异步编程的解决方案,简单来说就像一种容器,里面保存着某个只有未来才会结束的事件的结果。</li>
<li>Promise 的三种状态,pending(进行中),fulfilled(已完成),rejected(已失败)。</li>
<li>Promise 的最终状态由异步操作之后的结果决定,并且状态改变之后不会再变。</li>
<li>Promise 内部的错误不会影响到 Promise 外部的代码</summary>
</entry>
<entry>
<title></title>
<link href="https://www.liuzx.me/2022/08/26/package.json%E4%BB%8B%E7%BB%8D/"/>
<id>https://www.liuzx.me/2022/08/26/package.json%E4%BB%8B%E7%BB%8D/</id>
<published>2022-08-26T11:54:37.309Z</published>
<updated>2022-08-26T13:36:11.900Z</updated>
<summary type="html"><h1 id="package-json-介绍"><a href="#package-json-介绍" class="headerlink" title="package.json 介绍"></a>package.json 介绍</h1><ol>
<li>package.json 作用<ol>
<li>包管理配置文件,管理项目中所依赖的包的配置</li>
</ol>
</li>
<li>package-lock 作用<ol>
<li>本质是锁定(lock)包的版本</summary>
</entry>
<entry>
<title></title>
<link href="https://www.liuzx.me/2022/08/26/Module%E8%AF%AD%E6%B3%95/"/>
<id>https://www.liuzx.me/2022/08/26/Module%E8%AF%AD%E6%B3%95/</id>
<published>2022-08-26T11:54:18.568Z</published>
<updated>2022-08-26T13:36:26.184Z</updated>
<summary type="html"><h1 id="Module-语法"><a href="#Module-语法" class="headerlink" title="Module 语法"></a>Module 语法</h1><ol>
<li>ES6 模块可在编译时(即静态阶段)确定模块的编译关系,而 CommonJS 只能在运行时确定模块的依赖关系,所以 ES6 模块可实现静态优化。</li>
<li>ES6 模块支持按需加载需要的模块方法,但 CommonJS 只能加载所有的模块方法。</li>
<li>ES6 模块自动采用严格模式。</li>
<li>export 命令规定模块的对外接口,import 命令用于从模块中导入需要的功能。</li>
<li>export 命令可以输出变量,函数和类。</li>
<li>通过 import 命令导入的模块,可在模块导入语句的头部提前执行。</summary>
</entry>
<entry>
<title></title>
<link href="https://www.liuzx.me/2022/08/26/Module%E7%9A%84%E5%8A%A0%E8%BD%BD%E5%AE%9E%E7%8E%B0/"/>
<id>https://www.liuzx.me/2022/08/26/Module%E7%9A%84%E5%8A%A0%E8%BD%BD%E5%AE%9E%E7%8E%B0/</id>
<published>2022-08-26T11:53:49.957Z</published>
<updated>2022-08-26T13:36:41.987Z</updated>
<summary type="html"><h1 id="Module-的加载实现"><a href="#Module-的加载实现" class="headerlink" title="Module 的加载实现"></a>Module 的加载实现</h1><ol>
<li>在浏览器中加载 ES6 模块<ol>
<li>&lt;javascript&gt;标签的两种属性 async 与 defer 的相同点是都是异步加载。</li>
<li>&lt;javascript&gt;标签的两种属性 async 与 defer 区别<ol>
<li>defer:页面渲染完后执行。</li>
<li>async:脚本下载完成后执行,同时中断当前的渲染。</li>
<li>多个 defer 脚本按顺序执行,多个 async 脚本执行顺序不能保证。</li>
</ol>
</li>
<li>模块顶层的 this 指向 undefined。</li>
<li>在浏览器中加载 ES6 模块时,需要在&lt;javascript&gt;标签中指定 type&#x3D;”module”属性。</li>
<li>浏览器中的 ES6 模块,默认是 defer 属性的异步加载。</summary>
</entry>
<entry>
<title></title>
<link href="https://www.liuzx.me/2022/08/26/Generator%E5%87%BD%E6%95%B0%E8%AF%AD%E6%B3%95/"/>
<id>https://www.liuzx.me/2022/08/26/Generator%E5%87%BD%E6%95%B0%E8%AF%AD%E6%B3%95/</id>
<published>2022-08-26T11:53:29.539Z</published>
<updated>2022-08-26T23:40:14.102Z</updated>
<summary type="html"><h1 id="Generator-函数语法"><a href="#Generator-函数语法" class="headerlink" title="Generator 函数语法"></a>Generator 函数语法</h1><ol>
<li><p>Generator 相当于一个状态机,里面封装了多种内部状态</p>
</li>
<li><p>创建 Generator 函数时,Function 关键字跟函数名之间要有*星号</p>
</li>
<li><p>调用 Generator 函数后,不会执行里面的代码,而是生成一个迭代器对象</p>
</li>
<li><p>返回的迭代器对象可以反复使用 next()方法迭代内部状态</p>
</li>
<li><p>使用 next 方法会返回一个对象,这个对象有两个属性 1. value:当前状态的值,即 yield 表达式的值 2. done:迭代是否结束</p></summary>
</entry>
<entry>
<title></title>
<link href="https://www.liuzx.me/2022/08/26/ECMAScript6/"/>
<id>https://www.liuzx.me/2022/08/26/ECMAScript6/</id>
<published>2022-08-26T11:53:07.043Z</published>
<updated>2022-08-26T13:38:37.971Z</updated>
<summary type="html"><h1 id="ECMAScript6"><a href="#ECMAScript6" class="headerlink" title="ECMAScript6"></a>ECMAScript6</h1><ol>
<li><p>JavaScript 为动态类型语言。</p>
</li>
<li><p>静态语言:在编译阶段便检查数据类型。动态语言:在执行期间才检查语言的数据类型。</p>
</li>
<li><p>扩展运算符 1. 取出参数对象的所有可遍历属性,拷贝到当前对象中。</p></summary>
</entry>
<entry>
<title></title>
<link href="https://www.liuzx.me/2022/08/26/async%E5%87%BD%E6%95%B0/"/>
<id>https://www.liuzx.me/2022/08/26/async%E5%87%BD%E6%95%B0/</id>
<published>2022-08-26T11:52:43.605Z</published>
<updated>2022-08-26T11:52:43.893Z</updated>
<summary type="html"><h1 id="async函数"><a href="#async函数" class="headerlink"</summary>
</entry>
<entry>
<title></title>
<link href="https://www.liuzx.me/2022/08/26/Iterator%E9%81%8D%E5%8E%86%E5%99%A8/"/>
<id>https://www.liuzx.me/2022/08/26/Iterator%E9%81%8D%E5%8E%86%E5%99%A8/</id>
<published>2022-08-26T11:52:15.049Z</published>
<updated>2022-08-26T11:52:15.690Z</updated>
<summary type="html"><h1 id="async函数"><a href="#async函数" class="headerlink"</summary>
</entry>
<entry>
<title></title>
<link href="https://www.liuzx.me/2022/08/26/CORS%E9%80%9A%E4%BF%A1/"/>
<id>https://www.liuzx.me/2022/08/26/CORS%E9%80%9A%E4%BF%A1/</id>
<published>2022-08-26T11:51:48.577Z</published>
<updated>2022-08-26T13:33:59.772Z</updated>
<summary type="html"><h1 id="CORS-通信"><a href="#CORS-通信" class="headerlink" title="CORS 通信"></a>CORS 通信</h1><ol>
<li>CORS(Cross-Origin-Resource-Sharing),中文名跨域资源共享。</li>
<li>CORS 的作用是允许浏览器向跨域服务器发送 XMLHttpRequest(XHR)。</li>
<li>实现 CORS 跨域通信,主要看服务器是否实现 CORS 接口,也就是说主要在服务器端配置</li>
<li>服务器端配置 CORS 跨域的方法是设置 Access-Control-Allow-Origin</summary>
</entry>
<entry>
<title></title>
<link href="https://www.liuzx.me/2022/08/26/VueRouter/"/>
<id>https://www.liuzx.me/2022/08/26/VueRouter/</id>
<published>2022-08-26T11:47:29.153Z</published>
<updated>2022-08-26T13:39:02.058Z</updated>
<summary type="html"><h1 id="VueRouter"><a href="#VueRouter" class="headerlink" title="VueRouter"></a>VueRouter</h1><ol>
<li><p>导入 vue 及 vue-router 库</p>
</li>
<li><p>安装 vue-router 插件</p>
</li>
<li><p>导入路由组件</p>
</li>
<li><p>创建路由数组即 routes 数组,数组一般有 1. path 属性定义访问路径 2. component 属性指定组件名 3. redirect 属性用于路由重定向 4. meta 属性是一个对象,为路由记录添加其他额外信息,通过这个信息以实现控制路由的访问等功能</p></summary>
</entry>
<entry>
<title></title>
<link href="https://www.liuzx.me/2022/08/26/Vuex/"/>
<id>https://www.liuzx.me/2022/08/26/Vuex/</id>
<published>2022-08-26T11:45:49.861Z</published>
<updated>2022-08-26T23:44:00.588Z</updated>
<summary type="html"><h1 id="Vuex"><a href="#Vuex" class="headerlink" title="Vuex"></a>Vuex</h1><ol>
<li><p>作用:集中管理项目中组件公用的数据</p>
</li>
<li><p>使用场景:项目过大,组件多,并且数据量多的情况下可以使用 vuex</p>
</li>
<li><p>vuex 的状态是响应式的</p>
</li>
<li><p>mutations 不能直接更改状态</p>
</li>
<li><p>Vuex 使用步骤: 1. 创建 store 目录,在这个目录下创建 index.js 文件 2. 导入 Vue 及 Vuex 库 3. 安装 Vuex 库,即 Vue.use(Vuex) 4. 创建 vuex 实例,通过 new Vuex.Store({})方法 5. 向外导出 Vuex 实例 6. 在入口文件中导入 vuex 实例 7. 注册 vuex 实例</p></summary>
</entry>
<entry>
<title>DeepL</title>
<link href="https://www.liuzx.me/2021/06/19/DeepL/"/>
<id>https://www.liuzx.me/2021/06/19/DeepL/</id>
<published>2021-06-19T01:33:43.000Z</published>
<updated>2021-08-07T05:58:51.000Z</updated>
<summary type="html">DeepL才是最强大的翻译器!</summary>
<category term="分享" scheme="https://www.liuzx.me/categories/%E5%88%86%E4%BA%AB/"/>
<category term="工具" scheme="https://www.liuzx.me/tags/%E5%B7%A5%E5%85%B7/"/>
</entry>
<entry>
<title>语义化版本2.0.0介绍</title>
<link href="https://www.liuzx.me/2021/06/15/semver2.0.0/"/>
<id>https://www.liuzx.me/2021/06/15/semver2.0.0/</id>
<published>2021-06-15T04:43:23.000Z</published>
<updated>2022-08-26T23:43:51.508Z</updated>
<summary type="html"><h1 id="语义化版本-2-0-0-介绍"><a href="#语义化版本-2-0-0-介绍" class="headerlink" title="语义化版本 2.0.0 介绍"></a>语义化版本 2.0.0 介绍</h1><h2 id="简介"><a href="#简介" class="headerlink" title="简介"></a>简介</h2><p>语义化版本是为了解决软件开发过程中依赖关系混乱或者依赖锁死的情况。</p>
<p>它的标准格式如下:</p>
<blockquote>
<p><strong>x.y.z</strong></p>
</blockquote>
<p>其中 x 表示主版本号,y 表示次版本号,z 表示修订号。</p></summary>
<category term="扩展阅读" scheme="https://www.liuzx.me/categories/%E6%89%A9%E5%B1%95%E9%98%85%E8%AF%BB/"/>
<category term="版本号" scheme="https://www.liuzx.me/tags/%E7%89%88%E6%9C%AC%E5%8F%B7/"/>
</entry>
<entry>
<title>npm常用命令</title>
<link href="https://www.liuzx.me/2020/08/04/npm-command/"/>
<id>https://www.liuzx.me/2020/08/04/npm-command/</id>
<published>2020-08-04T04:43:23.000Z</published>
<updated>2022-08-26T23:43:28.849Z</updated>
<summary type="html"><h1 id="npm-常见命令"><a href="#npm-常见命令" class="headerlink" title="npm 常见命令"></a>npm 常见命令</h1><h2 id="一-npm-amp-yarn-介绍"><a href="#一-npm-amp-yarn-介绍" class="headerlink" title="一.npm&amp;yarn 介绍"></a>一.npm&amp;yarn 介绍</h2><p>npm 是一个基于 Node.js 的包管理工具。<br>yarn 是 Facebook、Google、Exponent 和 Tilde 联合推出了一个新的 包管理工具,与 npm 相比有些优势。<br>npm 在安装 Node.js 时会被一并安装,yarn 则需要额外安装。</p>
<h2 id="二-npm-amp-cnpm-的关系"><a href="#二-npm-amp-cnpm-的关系" class="headerlink" title="二.npm&amp;cnpm 的关系"></a>二.npm&amp;cnpm 的关系</h2><h3 id="1-介绍"><a href="#1-介绍" class="headerlink" title="1.介绍"></a>1.介绍</h3><p>由于 npm 服务器在国外,所以在国内安装速度不是很理想,于是淘宝团队开发了一个 npmjs.org 的镜像,可以有效解决下载过于缓慢的问题。这是淘宝团队对它的介绍。</p>
<blockquote>
<blockquote>
<p>“这是一个完整 npmjs.org 镜像,你可以用此代替官方版本(只读),同步频率目前为 10 分钟 一次以保证尽量与官方服务同步。”</p>
</blockquote>
</blockquote>
<h3 id="2-安装"><a href="#2-安装" class="headerlink" title="2.安装"></a>2.安装</h3><pre class="line-numbers language-none"><code class="language-none">npm install -g cnpm --registry&#x3D;https:&#x2F;&#x2F;registry.npm.taobao.org<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre></summary>
<category term="技术笔记" scheme="https://www.liuzx.me/categories/%E6%8A%80%E6%9C%AF%E7%AC%94%E8%AE%B0/"/>
<category term="npm" scheme="https://www.liuzx.me/tags/npm/"/>
<category term="yarn" scheme="https://www.liuzx.me/tags/yarn/"/>
<category term="cnpm" scheme="https://www.liuzx.me/tags/cnpm/"/>
</entry>
<entry>
<title>Java反射</title>
<link href="https://www.liuzx.me/2020/06/15/java-reflection/"/>
<id>https://www.liuzx.me/2020/06/15/java-reflection/</id>
<published>2020-06-15T04:43:23.000Z</published>
<updated>2021-08-07T05:58:51.000Z</updated>
<summary type="html">Java进阶学习之反射</summary>
<category term="技术笔记" scheme="https://www.liuzx.me/categories/%E6%8A%80%E6%9C%AF%E7%AC%94%E8%AE%B0/"/>
<category term="Java" scheme="https://www.liuzx.me/categories/%E6%8A%80%E6%9C%AF%E7%AC%94%E8%AE%B0/Java/"/>
<category term="Java" scheme="https://www.liuzx.me/tags/Java/"/>
<category term="Java反射" scheme="https://www.liuzx.me/tags/Java%E5%8F%8D%E5%B0%84/"/>
</entry>
<entry>
<title>Learning how to learn part1</title>
<link href="https://www.liuzx.me/2020/06/15/Learning%20how%20to%20learn%20prat%201/"/>
<id>https://www.liuzx.me/2020/06/15/Learning%20how%20to%20learn%20prat%201/</id>
<published>2020-06-15T04:32:33.000Z</published>
<updated>2021-08-07T05:58:51.000Z</updated>
<summary type="html">Coursera课程-Learning how to learn 章节1 总结~</summary>
<category term="Coursera课程" scheme="https://www.liuzx.me/categories/Coursera%E8%AF%BE%E7%A8%8B/"/>
<category term="Coursera" scheme="https://www.liuzx.me/tags/Coursera/"/>
</entry>
</feed>