-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
451 lines (376 loc) · 16.1 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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#FFF">
<link rel="apple-touch-icon" sizes="180x180" href="/HTworld.github.io/images/apple-touch-icon.png">
<link rel="icon" type="image/ico" sizes="32x32" href="/HTworld.github.io/images/favicon.ico">
<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
<link rel="alternate" type="application/rss+xml" title="HT知识星球" href="https://xhtgit.github.io/HTworld.github.io/rss.xml" />
<link rel="alternate" type="application/atom+xml" title="HT知识星球" href="https://xhtgit.github.io/HTworld.github.io/atom.xml" />
<link rel="alternate" type="application/json" title="HT知识星球" href="https://xhtgit.github.io/HTworld.github.io/feed.json" />
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Mulish:300,300italic,400,400italic,700,700italic%7CFredericka%20the%20Great:300,300italic,400,400italic,700,700italic%7CNoto%20Serif%20JP:300,300italic,400,400italic,700,700italic%7CNoto%20Serif%20SC:300,300italic,400,400italic,700,700italic%7CInconsolata:300,300italic,400,400italic,700,700italic&display=swap&subset=latin,latin-ext">
<link rel="stylesheet" href="/HTworld.github.io/css/app.css?v=0.2.5">
<link rel="canonical" href="https://xhtgit.github.io/HTworld.github.io/">
<title>HT知识星球</title>
<meta name="generator" content="Hexo 5.4.2"></head>
<body itemscope itemtype="http://schema.org/WebPage">
<div id="loading">
<div class="cat">
<div class="body"></div>
<div class="head">
<div class="face"></div>
</div>
<div class="foot">
<div class="tummy-end"></div>
<div class="bottom"></div>
<div class="legs left"></div>
<div class="legs right"></div>
</div>
<div class="paw">
<div class="hands left"></div>
<div class="hands right"></div>
</div>
</div>
</div>
<div id="container">
<header id="header" itemscope itemtype="http://schema.org/WPHeader">
<div class="inner">
<div id="brand">
<div class="pjax">
<a href="/HTworld.github.io/" class="logo" rel="start">
<h1 itemprop="name headline" class="title">HT知识星球</h1>
</a>
</div>
</div>
<nav id="nav">
<div class="inner">
<div class="toggle">
<div class="lines" aria-label="切换导航栏">
<span class="line"></span>
<span class="line"></span>
<span class="line"></span>
</div>
</div>
<ul class="menu">
<li class="item title"><a href="/HTworld.github.io/" rel="start">HT知识星球</a></li>
</ul>
<ul class="right">
<li class="item theme">
<i class="ic i-sun"></i>
</li>
<li class="item search">
<i class="ic i-search"></i>
</li>
</ul>
</div>
</nav>
</div>
<div id="imgs" class="pjax">
<ul>
<li class="item" data-background-image="https://i.loli.net/2020/10/30/qAMYEFXxJcKRsiG.gif"></li>
<li class="item" data-background-image="https://i.loli.net/2020/10/30/rjdhcSgEN8COBPA.jpg"></li>
<li class="item" data-background-image="https://ts1.cn.mm.bing.net/th/id/R-C.ac4aa76ce00abab00967006a13da7ff1?rik=zddMsJvV9Z0Eag&riu=http%3a%2f%2fpic.baike.soso.com%2fugc%2fbaikepic2%2f26762%2f20170204223956-1232796808.jpg%2f0&ehk=J9tlI34xf09tU527m%2bjzI0Hb3gL1SernLuoBpZ7IE9o%3d&risl=&pid=ImgRaw&r=0"></li>
<li class="item" data-background-image="https://i.loli.net/2020/10/30/Z5W6r2BSoiThHG1.jpg"></li>
<li class="item" data-background-image="https://i.loli.net/2020/10/30/Y1CBXqgeokEs457.jpg"></li>
<li class="item" data-background-image="https://i.loli.net/2020/10/30/HKyzSd7NI3mlBpt.jpg"></li>
</ul>
</div>
</header>
<div id="waves">
<svg class="waves" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 24 150 28" preserveAspectRatio="none" shape-rendering="auto">
<defs>
<path id="gentle-wave" d="M-160 44c30 0 58-18 88-18s 58 18 88 18 58-18 88-18 58 18 88 18 v44h-352z" />
</defs>
<g class="parallax">
<use xlink:href="#gentle-wave" x="48" y="0" />
<use xlink:href="#gentle-wave" x="48" y="3" />
<use xlink:href="#gentle-wave" x="48" y="5" />
<use xlink:href="#gentle-wave" x="48" y="7" />
</g>
</svg>
</div>
<main>
<div class="inner">
<div id="main" class="pjax">
<div class="index wrap">
<h2 class="divider">文章列表</h2>
<div class="segments posts">
<article class="item">
<div class="cover">
<a href="/HTworld.github.io/2023/04/14/Hexo+GitHub%20Pages%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA-%E6%89%93%E9%80%A0%E4%BD%A0%E7%9A%84%E7%9F%A5%E8%AF%86%E4%B8%96%E7%95%8C/" itemprop="url" title="Hexo+GitHub Pages个人博客搭建-打造你的知识世界"><img data-src="https://i.loli.net/2020/10/30/qAMYEFXxJcKRsiG.gif"></a>
</div>
<div class="info">
<div class="meta">
<span class="item" title="创建时间:2023-04-14 10:08:43">
<span class="icon">
<i class="ic i-calendar"></i>
</span>
<time itemprop="dateCreated datePublished" datetime="2023-04-14T10:08:43+08:00">2023-04-14</time>
</span>
<span class="item" title="本文字数">
<span class="icon">
<i class="ic i-pen"></i>
</span>
<span>938</span>
<span class="text">字</span>
</span>
<span class="item" title="阅读时长">
<span class="icon">
<i class="ic i-clock"></i>
</span>
<span>1 分钟</span>
</span>
</div>
<h3><a href="/HTworld.github.io/2023/04/14/Hexo+GitHub%20Pages%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA-%E6%89%93%E9%80%A0%E4%BD%A0%E7%9A%84%E7%9F%A5%E8%AF%86%E4%B8%96%E7%95%8C/" itemprop="url" title="Hexo+GitHub Pages个人博客搭建-打造你的知识世界">Hexo+GitHub Pages个人博客搭建-打造你的知识世界</a></h3>
<div class="excerpt">
# 介绍
# GitHub Pages
GitHub Pages 是一个静态网站托管服务。
GitHub Pages 是设计用来托管你的个人页面,组织页面,或者 Github 仓库的项目页面。
# Hexo
Hexo 是一款基于 Node.js 的静态博客框架,依赖少易于安装使用,可以方便的生成静态网页托管在 GitHub 和 Coding 上,是搭建博客的首选框架。大家可以进入 hexo 官网进行详细查看,因为 Hexo 的创建者是台湾人,对中文的支持很友好,可以选择中文进行查看。
框架文档地址:Hexo\
我的博客地址:HT 知识星球 (xhtgit.github.io)
#...
</div>
<div class="meta footer">
<span>
<a href="/HTworld.github.io/categories/%E5%89%8D%E7%AB%AF/" itemprop="url" title="前端"><i class="ic i-flag"></i>前端</a>
</span>
</div>
<a href="/HTworld.github.io/2023/04/14/Hexo+GitHub%20Pages%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA-%E6%89%93%E9%80%A0%E4%BD%A0%E7%9A%84%E7%9F%A5%E8%AF%86%E4%B8%96%E7%95%8C/" itemprop="url" title="Hexo+GitHub Pages个人博客搭建-打造你的知识世界" class="btn">more...</a>
</div>
</article>
<article class="item">
<div class="cover">
<a href="/HTworld.github.io/2023/04/13/console.log%E4%B9%9F%E4%BC%9A%E5%BC%95%E5%8F%91%E5%86%85%E5%AD%98%E6%B3%84%E6%BC%8F%EF%BC%9F/" itemprop="url" title="console.log也会引发内存泄漏?"><img data-src="https://i.loli.net/2020/10/30/rjdhcSgEN8COBPA.jpg"></a>
</div>
<div class="info">
<div class="meta">
<span class="item" title="创建时间:2023-04-13 19:40:21">
<span class="icon">
<i class="ic i-calendar"></i>
</span>
<time itemprop="dateCreated datePublished" datetime="2023-04-13T19:40:21+08:00">2023-04-13</time>
</span>
<span class="item" title="本文字数">
<span class="icon">
<i class="ic i-pen"></i>
</span>
<span>931</span>
<span class="text">字</span>
</span>
<span class="item" title="阅读时长">
<span class="icon">
<i class="ic i-clock"></i>
</span>
<span>1 分钟</span>
</span>
</div>
<h3><a href="/HTworld.github.io/2023/04/13/console.log%E4%B9%9F%E4%BC%9A%E5%BC%95%E5%8F%91%E5%86%85%E5%AD%98%E6%B3%84%E6%BC%8F%EF%BC%9F/" itemprop="url" title="console.log也会引发内存泄漏?">console.log也会引发内存泄漏?</a></h3>
<div class="excerpt">
# 前言
console.log () 是一个 JavaScript 中的函数,用于在控制台输出信息。它可以接受一个或多个参数,每个参数之间用逗号隔开,输出的内容可以是字符串、数字、布尔值、对象、数组等。
但是我们可能没有意识到一个简单的 console.log 可能也会引起内存泄漏。
# 详解
console.log 本身并不会导致内存泄漏,因为它只是用于输出日志信息的一个方法。然而,在某些情况下,console.log 可能会导致内存泄漏,具体原因如下:
在循环中使用 console.log:如果在循环中使用...
</div>
<div class="meta footer">
<span>
<a href="/HTworld.github.io/categories/%E5%89%8D%E7%AB%AF/" itemprop="url" title="前端"><i class="ic i-flag"></i>前端</a>
</span>
</div>
<a href="/HTworld.github.io/2023/04/13/console.log%E4%B9%9F%E4%BC%9A%E5%BC%95%E5%8F%91%E5%86%85%E5%AD%98%E6%B3%84%E6%BC%8F%EF%BC%9F/" itemprop="url" title="console.log也会引发内存泄漏?" class="btn">more...</a>
</div>
</article>
<article class="item">
<div class="cover">
<a href="/HTworld.github.io/2023/03/22/Git-daily/" itemprop="url" title="Git祖传宝典"><img data-src="https://i.loli.net/2020/10/30/Y1CBXqgeokEs457.jpg"></a>
</div>
<div class="info">
<div class="meta">
<span class="item" title="创建时间:2023-03-22 00:44:22">
<span class="icon">
<i class="ic i-calendar"></i>
</span>
<time itemprop="dateCreated datePublished" datetime="2023-03-22T00:44:22+08:00">2023-03-22</time>
</span>
<span class="item" title="本文字数">
<span class="icon">
<i class="ic i-pen"></i>
</span>
<span>490</span>
<span class="text">字</span>
</span>
<span class="item" title="阅读时长">
<span class="icon">
<i class="ic i-clock"></i>
</span>
<span>1 分钟</span>
</span>
</div>
<h3><a href="/HTworld.github.io/2023/03/22/Git-daily/" itemprop="url" title="Git祖传宝典">Git祖传宝典</a></h3>
<div class="excerpt">
这是一篇加密博文,请输入密码后查看
</div>
<div class="meta footer">
<span>
<a href="/HTworld.github.io/categories/%E5%89%8D%E7%AB%AF/" itemprop="url" title="前端"><i class="ic i-flag"></i>前端</a>
</span>
</div>
<a href="/HTworld.github.io/2023/03/22/Git-daily/" itemprop="url" title="Git祖传宝典" class="btn">more...</a>
</div>
</article>
</div>
</div>
</div>
<div id="sidebar">
<div class="inner">
<div class="panels">
<div class="inner">
<div class="contents panel pjax" data-title="文章目录">
</div>
<div class="related panel pjax" data-title="系列文章">
</div>
<div class="overview panel" data-title="站点概览">
<div class="author" itemprop="author" itemscope itemtype="http://schema.org/Person">
<img class="image" itemprop="image" alt="HT Xie"
data-src="/HTworld.github.io/images/avatar.jpg">
<p class="name" itemprop="name">HT Xie</p>
<div class="description" itemprop="description"></div>
</div>
<nav class="state">
<div class="item posts">
<a href="/HTworld.github.io/archives/">
<span class="count">3</span>
<span class="name">文章</span>
</a>
</div>
<div class="item categories">
<a href="/HTworld.github.io/categories/">
<span class="count">1</span>
<span class="name">分类</span>
</a>
</div>
<div class="item tags">
<a href="/HTworld.github.io/tags/">
<span class="count">3</span>
<span class="name">标签</span>
</a>
</div>
</nav>
<div class="social">
</div>
<ul class="menu">
<li class="item">
<a href="/HTworld.github.io/" rel="section"><i class="ic i-home"></i>首页</a>
</li>
</ul>
</div>
</div>
</div>
<ul id="quick">
<li class="prev pjax">
</li>
<li class="up"><i class="ic i-arrow-up"></i></li>
<li class="down"><i class="ic i-arrow-down"></i></li>
<li class="next pjax">
</li>
<li class="percent"></li>
</ul>
</div>
</div>
<div class="dimmer"></div>
</div>
</main>
<footer id="footer">
<div class="inner">
<div class="widgets">
<div class="rpost pjax">
<h2>随机文章</h2>
<ul>
<li class="item">
<div class="breadcrumb">
<a href="/HTworld.github.io/categories/%E5%89%8D%E7%AB%AF/" title="分类于 前端">前端</a>
</div>
<span><a href="/HTworld.github.io/2023/04/13/console.log%E4%B9%9F%E4%BC%9A%E5%BC%95%E5%8F%91%E5%86%85%E5%AD%98%E6%B3%84%E6%BC%8F%EF%BC%9F/" title="console.log也会引发内存泄漏?">console.log也会引发内存泄漏?</a></span>
</li>
<li class="item">
<div class="breadcrumb">
<a href="/HTworld.github.io/categories/%E5%89%8D%E7%AB%AF/" title="分类于 前端">前端</a>
</div>
<span><a href="/HTworld.github.io/2023/03/22/Git-daily/" title="Git祖传宝典">Git祖传宝典</a></span>
</li>
<li class="item">
<div class="breadcrumb">
<a href="/HTworld.github.io/categories/%E5%89%8D%E7%AB%AF/" title="分类于 前端">前端</a>
</div>
<span><a href="/HTworld.github.io/2023/04/14/Hexo+GitHub%20Pages%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA-%E6%89%93%E9%80%A0%E4%BD%A0%E7%9A%84%E7%9F%A5%E8%AF%86%E4%B8%96%E7%95%8C/" title="Hexo+GitHub Pages个人博客搭建-打造你的知识世界">Hexo+GitHub Pages个人博客搭建-打造你的知识世界</a></span>
</li>
</ul>
</div>
<div>
<h2>最新评论</h2>
<ul class="leancloud-recent-comment"></ul>
</div>
</div>
<div class="status">
<div class="copyright">
© 2010 –
<span itemprop="copyrightYear">2023</span>
<span class="with-love">
<i class="ic i-sakura rotate"></i>
</span>
<span class="author" itemprop="copyrightHolder">HT Xie @ HT知识星球</span>
</div>
<div class="count">
<span class="post-meta-item-icon">
<i class="ic i-chart-area"></i>
</span>
<span title="站点总字数">2k 字</span>
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="ic i-coffee"></i>
</span>
<span title="站点阅读时长">2 分钟</span>
</div>
<div class="powered-by">
基于 <span class="exturl" data-url="aHR0cHM6Ly9oZXhvLmlv">Hexo</span> & Theme.<span class="exturl" data-url="aHR0cHM6Ly9naXRodWIuY29tL2FtZWhpbWUvaGV4by10aGVtZS1zaG9rYQ==">Shoka</span>
</div>
</div>
</div>
</footer>
</div>
<script data-config type="text/javascript">
var LOCAL = {
path: '',
favicon: {
show: "(●´3`●)やれやれだぜ",
hide: "(´Д`)大変だ!"
},
search : {
placeholder: "文章搜索",
empty: "关于 「 ${query} 」,什么也没搜到",
stats: "${time} ms 内找到 ${hits} 条结果"
},
valine: true,fancybox: true,
copyright: '复制成功,转载请遵守 <i class="ic i-creative-commons"></i>BY-NC-SA 协议。',
ignores : [
function(uri) {
return uri.includes('#');
},
function(uri) {
return new RegExp(LOCAL.path+"$").test(uri);
}
]
};
</script>
<script src="https://cdn.polyfill.io/v2/polyfill.js"></script>
<script src="//cdn.jsdelivr.net/combine/npm/[email protected]/pace.min.js,npm/[email protected]/pjax.min.js,npm/[email protected]/dist/fetch.umd.min.js,npm/[email protected]/lib/anime.min.js,npm/algoliasearch@4/dist/algoliasearch-lite.umd.js,npm/instantsearch.js@4/dist/instantsearch.production.min.js,npm/lozad@1/dist/lozad.min.js,npm/quicklink@2/dist/quicklink.umd.js"></script>
<script src="/HTworld.github.io/js/app.js?v=0.2.5"></script>
</body>
</html>