-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
443 lines (280 loc) · 19.2 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hexo</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta property="og:type" content="website">
<meta property="og:title" content="Hexo">
<meta property="og:url" content="http://example.com/index.html">
<meta property="og:site_name" content="Hexo">
<meta property="og:locale" content="en_US">
<meta property="article:author" content="John Doe">
<meta name="twitter:card" content="summary">
<link rel="alternate" href="/atom.xml" title="Hexo" type="application/atom+xml">
<link rel="shortcut icon" href="/favicon.png">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/typeface-source-code-pro@0.0.71/index.min.css">
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/fancybox/jquery.fancybox.min.css">
<meta name="generator" content="Hexo 6.3.0"></head>
<body>
<div id="container">
<div id="wrap">
<header id="header">
<div id="banner"></div>
<div id="header-outer" class="outer">
<div id="header-title" class="inner">
<h1 id="logo-wrap">
<a href="/" id="logo">Hexo</a>
</h1>
</div>
<div id="header-inner" class="inner">
<nav id="main-nav">
<a id="main-nav-toggle" class="nav-icon"><span class="fa fa-bars"></span></a>
<a class="main-nav-link" href="/">Home</a>
<a class="main-nav-link" href="/archives">Archives</a>
</nav>
<nav id="sub-nav">
<a class="nav-icon" href="/atom.xml" title="RSS Feed"><span class="fa fa-rss"></span></a>
<a class="nav-icon nav-search-btn" title="Search"><span class="fa fa-search"></span></a>
</nav>
<div id="search-form-wrap">
<form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit"></button><input type="hidden" name="sitesearch" value="http://example.com"></form>
</div>
</div>
</div>
</header>
<div class="outer">
<section id="main">
<article id="post-javascript知识点" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
<div class="article-meta">
<a href="/2024/04/16/javascript%E7%9F%A5%E8%AF%86%E7%82%B9/" class="article-date">
<time class="dt-published" datetime="2024-04-16T09:46:07.000Z" itemprop="datePublished">2024-04-16</time>
</a>
<div class="article-category">
<a class="article-category-link" href="/categories/%E6%8A%80%E6%9C%AF/">技术</a>
</div>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="p-name article-title" href="/2024/04/16/javascript%E7%9F%A5%E8%AF%86%E7%82%B9/">javascript知识点</a>
</h1>
</header>
<div class="e-content article-entry" itemprop="articleBody">
<h1 id="JavaScript类型"><a href="#JavaScript类型" class="headerlink" title="JavaScript类型"></a>JavaScript类型</h1><ul>
<li>基本类型有六种: null,undefined,boolean,number,string,symbol</li>
</ul>
<h1 id="let、const、var的区别"><a href="#let、const、var的区别" class="headerlink" title="let、const、var的区别"></a>let、const、var的区别</h1><ul>
<li>let 和 const 不允许重复声明,var是可以重复声明的</li>
<li>let 和 const 没有变量提升,必须先声明后使用;var 存在变量提升,可以先使用后声明</li>
<li>let 和 const 有块级作用域,var没有</li>
</ul>
<h1 id="对原型的理解"><a href="#对原型的理解" class="headerlink" title="对原型的理解"></a>对原型的理解</h1><ul>
<li>原型包含prototype 和 __ proto__,原型可以节省内存空间、实现数据共享、实现继承</li>
<li>在执行函数定义的时候,显示原型prototype就会被创建,在实例化对象的时候,隐式原型 __ proto__就会被创建</li>
<li>因为函数本身也是对象,所以函数除了显示原型prototype外,也拥有隐式原型__ proto__</li>
</ul>
<h1 id="对执行上下文的理解"><a href="#对执行上下文的理解" class="headerlink" title="对执行上下文的理解"></a>对执行上下文的理解</h1><ul>
<li>当代码要执行,但是没有执行,或者将要执行,在预解析之后,<br>此时出现了全局执行上下文环境(全局执行上下文),<br>创建了一个变量对象,用来收集var , function ,函数参数,确定this的指向,<br>默认全局执行上下文是确定了this是window,<br>这个变量对象会被压入到栈中(全局执行上下文的变量对象在栈中的最下面),<br>如果出现了函数调用,此时出现了局部执行上下文环境(局部执行上下文),<br>再次创建一个变量对象,用来收集函数参数,var ,function,改变this的指向,<br>这个变量对象会被再次压入栈中,在全局执行上下文的变量对象的上面,<br>如果当前函数调用完毕,此时出栈(把局部上下文的变量对象干掉),依次弹出变量对象,就结束了</li>
</ul>
</div>
<footer class="article-footer">
<a data-url="http://example.com/2024/04/16/javascript%E7%9F%A5%E8%AF%86%E7%82%B9/" data-id="clv278wo90000vgvd1texd805" data-title="javascript知识点" class="article-share-link"><span class="fa fa-share">Share</span></a>
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/JavaScript/" rel="tag">JavaScript</a></li></ul>
</footer>
</div>
</article>
<article id="post-hexo-github搭建博客" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
<div class="article-meta">
<a href="/2024/04/16/hexo-github%E6%90%AD%E5%BB%BA%E5%8D%9A%E5%AE%A2/" class="article-date">
<time class="dt-published" datetime="2024-04-16T09:43:35.000Z" itemprop="datePublished">2024-04-16</time>
</a>
<div class="article-category">
<a class="article-category-link" href="/categories/%E6%8A%80%E6%9C%AF/">技术</a>
</div>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="p-name article-title" href="/2024/04/16/hexo-github%E6%90%AD%E5%BB%BA%E5%8D%9A%E5%AE%A2/">hexo-github搭建博客</a>
</h1>
</header>
<div class="e-content article-entry" itemprop="articleBody">
<h3 id="创建Github项目"><a href="#创建Github项目" class="headerlink" title="创建Github项目"></a>创建Github项目</h3><ol>
<li>Github账户注册和新建项目,项目必须要遵守格式:账户名.github.io。</li>
</ol>
<h3 id="安装Hexo"><a href="#安装Hexo" class="headerlink" title="安装Hexo"></a>安装Hexo</h3><ol>
<li>创建一个blog文件夹。然后在vscode打文件夹</li>
<li>在vscode中打开终端,输入npm install hexo -g,开始安装Hexo</li>
<li>输入hexo -v,检查hexo是否安装成功</li>
<li>输入hexo init,初始化该文件夹</li>
<li>输入npm install,安装所需要的组件</li>
<li>输入hexo g,首次体验Hexo</li>
<li>输入hexo s,开启服务器,访问该网址</li>
</ol>
<h3 id="将本地blog和Github项目联系起来"><a href="#将本地blog和Github项目联系起来" class="headerlink" title="将本地blog和Github项目联系起来"></a>将本地blog和Github项目联系起来</h3><ol>
<li><p>配置Deployment,在其文件夹中,找到_config.yml文件,修改repository值</p>
</li>
<li><p>repository值是你在github项目里的ssh</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">deploy:</span><br><span class="line"> type: git</span><br><span class="line"> repository: git@github.com:xyjsophie/xyjsophie.github.io.git</span><br><span class="line"> branch: master</span><br></pre></td></tr></table></figure>
</li>
<li><p>新建一篇博客:hexo new post “博客名”</p>
</li>
</ol>
<h3 id="把新建的文章更新到Github项目上"><a href="#把新建的文章更新到Github项目上" class="headerlink" title="把新建的文章更新到Github项目上"></a>把新建的文章更新到Github项目上</h3><ol>
<li>在生成以及部署文章之前,需要安装一个扩展:<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install hexo-deployer-git --save</span><br></pre></td></tr></table></figure></li>
<li>使用编辑器编好文章,那么就可以使用命令:hexo d -g,生成以及部署了</li>
<li>部署成功后访问你的地址:http://用户名.github.io。</li>
</ol>
<h3 id="更新主题后,上传没有生效"><a href="#更新主题后,上传没有生效" class="headerlink" title="更新主题后,上传没有生效"></a>更新主题后,上传没有生效</h3><p>推荐在发布网站之前,先清除缓存,然后再部署网站。<br>清除缓存的方法: </p>
<ul>
<li>执行命令:hexo clean </li>
<li>然后可以生成静态博客并在本地预览:hexo d -g</li>
</ul>
</div>
<footer class="article-footer">
<a data-url="http://example.com/2024/04/16/hexo-github%E6%90%AD%E5%BB%BA%E5%8D%9A%E5%AE%A2/" data-id="clv27619n000008vd7kd4abz8" data-title="hexo-github搭建博客" class="article-share-link"><span class="fa fa-share">Share</span></a>
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Github/" rel="tag">Github</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/hexo/" rel="tag">hexo</a></li></ul>
</footer>
</div>
</article>
<article id="post-git安装" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
<div class="article-meta">
<a href="/2024/04/16/git%E5%AE%89%E8%A3%85/" class="article-date">
<time class="dt-published" datetime="2024-04-16T09:41:23.000Z" itemprop="datePublished">2024-04-16</time>
</a>
<div class="article-category">
<a class="article-category-link" href="/categories/%E6%8A%80%E6%9C%AF/">技术</a>
</div>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="p-name article-title" href="/2024/04/16/git%E5%AE%89%E8%A3%85/">git安装</a>
</h1>
</header>
<div class="e-content article-entry" itemprop="articleBody">
<h1 id="安装-Git"><a href="#安装-Git" class="headerlink" title="安装 Git"></a>安装 Git</h1><ul>
<li>在 Windows 上安装</li>
<li>简单的方法是安装 GitHub for Windows。 该安装程序包含图形化和命令行版本的 Git。 可以在 GitHub for Windows 网站下载,网址为 <a target="_blank" rel="noopener" href="https://git-for-windows.github.io/">https://git-for-windows.github.io</a>。</li>
</ul>
<h1 id="Git-版本管理"><a href="#Git-版本管理" class="headerlink" title="Git 版本管理"></a>Git 版本管理</h1><ul>
<li><p>经验:本地登录SSH认证</p>
</li>
<li><p>首先进行本地SSH公钥的生成。打开git bash终端,键入:<strong>SSH-KEYGEN -T RSA -C “邮箱地址”</strong><br>这里的邮箱地址即为你的github账号邮箱。</p>
</li>
</ul>
<ol>
<li><p>执行前述命令后若成功则会提示在用户文件夹下生成了ssh公钥的文件。<br>是否成功可以通过访问文件夹 .ssh 来确定,若有此文件夹则说明生成成功。</p>
</li>
<li><p>在资源管理器中打开这个.ssh文件夹,在它下面会看到两个文件,<br>选择后缀名为.pub的文件并用记事本打开,复制这个文件中的所有内容。</p>
</li>
<li><p>打开浏览器登陆github,在自己的账户面板下找到<br>SSH keys这一栏,打开后即会看到目前该账户下已进行过SSH认证的机器,<br>选择Add SSH key之后,将前一步复制的内容粘贴至Key中。</p>
</li>
<li><p>保存后,回到git bash中,<br>键入 ssh <a href="mailto:git@github.com">git@github.com</a>进行连接认证,<br>其中有一步会询问是否确定进行连接,需要键入yes。</p>
</li>
<li><p>在完成认证后,即可将git上的开源项目或自己账号下的私有项目clone到本地。</p>
</li>
</ol>
</div>
<footer class="article-footer">
<a data-url="http://example.com/2024/04/16/git%E5%AE%89%E8%A3%85/" data-id="clv273kwu0000hwvd06kq26kx" data-title="git安装" class="article-share-link"><span class="fa fa-share">Share</span></a>
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Github/" rel="tag">Github</a></li></ul>
</footer>
</div>
</article>
<article id="post-hello-world" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
<div class="article-meta">
<a href="/2024/04/16/hello-world/" class="article-date">
<time class="dt-published" datetime="2024-04-16T09:22:46.807Z" itemprop="datePublished">2024-04-16</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="p-name article-title" href="/2024/04/16/hello-world/">Hello World</a>
</h1>
</header>
<div class="e-content article-entry" itemprop="articleBody">
<p>Welcome to <a target="_blank" rel="noopener" href="https://hexo.io/">Hexo</a>! This is your very first post. Check <a target="_blank" rel="noopener" href="https://hexo.io/docs/">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a target="_blank" rel="noopener" href="https://hexo.io/docs/troubleshooting.html">troubleshooting</a> or you can ask me on <a target="_blank" rel="noopener" href="https://github.com/hexojs/hexo/issues">GitHub</a>.</p>
<h2 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><h3 id="Create-a-new-post"><a href="#Create-a-new-post" class="headerlink" title="Create a new post"></a>Create a new post</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo new <span class="string">"My New Post"</span></span><br></pre></td></tr></table></figure>
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/writing.html">Writing</a></p>
<h3 id="Run-server"><a href="#Run-server" class="headerlink" title="Run server"></a>Run server</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo server</span><br></pre></td></tr></table></figure>
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/server.html">Server</a></p>
<h3 id="Generate-static-files"><a href="#Generate-static-files" class="headerlink" title="Generate static files"></a>Generate static files</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo generate</span><br></pre></td></tr></table></figure>
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/generating.html">Generating</a></p>
<h3 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo deploy</span><br></pre></td></tr></table></figure>
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/one-command-deployment.html">Deployment</a></p>
</div>
<footer class="article-footer">
<a data-url="http://example.com/2024/04/16/hello-world/" data-id="clv26uv4r00006svd3lt0beo9" data-title="Hello World" class="article-share-link"><span class="fa fa-share">Share</span></a>
</footer>
</div>
</article>
</section>
<aside id="sidebar">
<div class="widget-wrap">
<h3 class="widget-title">Categories</h3>
<div class="widget">
<ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/%E6%8A%80%E6%9C%AF/">技术</a></li></ul>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">Tags</h3>
<div class="widget">
<ul class="tag-list" itemprop="keywords"><li class="tag-list-item"><a class="tag-list-link" href="/tags/Github/" rel="tag">Github</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/JavaScript/" rel="tag">JavaScript</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/hexo/" rel="tag">hexo</a></li></ul>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">Tag Cloud</h3>
<div class="widget tagcloud">
<a href="/tags/Github/" style="font-size: 20px;">Github</a> <a href="/tags/JavaScript/" style="font-size: 10px;">JavaScript</a> <a href="/tags/hexo/" style="font-size: 10px;">hexo</a>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">Archives</h3>
<div class="widget">
<ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2024/04/">April 2024</a></li></ul>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">Recent Posts</h3>
<div class="widget">
<ul>
<li>
<a href="/2024/04/16/javascript%E7%9F%A5%E8%AF%86%E7%82%B9/">javascript知识点</a>
</li>
<li>
<a href="/2024/04/16/hexo-github%E6%90%AD%E5%BB%BA%E5%8D%9A%E5%AE%A2/">hexo-github搭建博客</a>
</li>
<li>
<a href="/2024/04/16/git%E5%AE%89%E8%A3%85/">git安装</a>
</li>
<li>
<a href="/2024/04/16/hello-world/">Hello World</a>
</li>
</ul>
</div>
</div>
</aside>
</div>
<footer id="footer">
<div class="outer">
<div id="footer-info" class="inner">
© 2024 John Doe<br>
Powered by <a href="https://hexo.io/" target="_blank">Hexo</a>
</div>
</div>
</footer>
</div>
<nav id="mobile-nav">
<a href="/" class="mobile-nav-link">Home</a>
<a href="/archives" class="mobile-nav-link">Archives</a>
</nav>
<script src="/js/jquery-3.6.4.min.js"></script>
<script src="/fancybox/jquery.fancybox.min.js"></script>
<script src="/js/script.js"></script>
</div>
</body>
</html>