-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
307 lines (256 loc) · 11.8 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
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>mo白的博客</title>
<meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta name="theme-color" content="#f8f5ec" />
<meta name="msapplication-navbutton-color" content="#f8f5ec">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#f8f5ec">
<meta name="author" content="mo白" /><meta name="description" content="基于hugo的even主题建立的blog." /><meta name="keywords" content="Hugo, theme, even" />
<meta name="generator" content="Hugo 0.58.3 with theme even" />
<link rel="canonical" href="https://yangj0605.github.io/" />
<link href="https://yangj0605.github.io/index.xml" rel="alternate" type="application/rss+xml" title="mo白的博客" />
<link href="https://yangj0605.github.io/index.xml" rel="feed" type="application/rss+xml" title="mo白的博客" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<link href="/dist/even.c2a46f00.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/[email protected]/dist/jquery.fancybox.min.css" integrity="sha256-7TyXnr2YU040zfSP+rEcz29ggW4j56/ujTPwjMzyqFY=" crossorigin="anonymous">
<meta property="og:title" content="mo白的博客" />
<meta property="og:description" content="基于hugo的even主题建立的blog." />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://yangj0605.github.io/" />
<meta property="og:updated_time" content="2019-11-20T22:21:18+08:00" />
<meta itemprop="name" content="mo白的博客">
<meta itemprop="description" content="基于hugo的even主题建立的blog.">
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="mo白的博客"/>
<meta name="twitter:description" content="基于hugo的even主题建立的blog."/>
<!--[if lte IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/classlist/1.1.20170427/classList.min.js"></script>
<![endif]-->
<!--[if lt IE 9]>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/html5shiv.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dest/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div id="mobile-navbar" class="mobile-navbar">
<div class="mobile-header-logo">
<a href="/" class="logo">♥mo白</a>
</div>
<div class="mobile-navbar-icon">
<span></span>
<span></span>
<span></span>
</div>
</div>
<nav id="mobile-menu" class="mobile-menu slideout-menu">
<ul class="mobile-menu-list">
<a href="/">
<li class="mobile-menu-item">主页</li>
</a><a href="/post/">
<li class="mobile-menu-item">文章</li>
</a><a href="/tags/">
<li class="mobile-menu-item">标签</li>
</a><a href="/categories/">
<li class="mobile-menu-item">种类</li>
</a><a href="/about/">
<li class="mobile-menu-item">About</li>
</a>
</ul>
</nav>
<div class="container" id="mobile-panel">
<header id="header" class="header">
<div class="logo-wrapper">
<a href="/" class="logo">♥mo白</a>
</div>
<nav class="site-navbar">
<ul id="menu" class="menu">
<li class="menu-item">
<a class="menu-item-link" href="/">主页</a>
</li><li class="menu-item">
<a class="menu-item-link" href="/post/">文章</a>
</li><li class="menu-item">
<a class="menu-item-link" href="/tags/">标签</a>
</li><li class="menu-item">
<a class="menu-item-link" href="/categories/">种类</a>
</li><li class="menu-item">
<a class="menu-item-link" href="/about/">About</a>
</li>
</ul>
</nav>
</header>
<main id="main" class="main">
<div class="content-wrapper">
<div id="content" class="content">
<section id="posts" class="posts">
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/post/event-loop/">Event Loop的理解</a></h1>
<div class="post-meta">
<span class="post-time"> 2019-11-20 </span>
<div class="post-category">
<a href="/categories/js/"> js </a>
<a href="/categories/%E6%96%B0%E7%9F%A5%E8%AF%86/"> 新知识 </a>
</div>
<span class="more-meta"> 约 2359 字 </span>
<span class="more-meta"> 预计阅读 5 分钟 </span>
</div>
</header>
<div class="post-content">
<div class="post-summary">
首先先了解以下几个概念: CPU 计算机的核心就是CPU,它承担了所有的计算任务。它就像一座工厂,时刻在运行。 进程 单个CPU一次只能运行一个任务。进
</div>
<div class="read-more">
<a href="/post/event-loop/" class="read-more-link">阅读更多</a>
</div>
</div>
</article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/post/spa%E5%8D%95%E9%A1%B5%E9%9D%A2%E4%B8%8Evue%E7%9A%84scoped/">SPA与vue的scoped原理</a></h1>
<div class="post-meta">
<span class="post-time"> 2019-11-01 </span>
<div class="post-category">
<a href="/categories/vue/"> vue </a>
<a href="/categories/%E6%96%B0%E7%9F%A5%E8%AF%86/"> 新知识 </a>
</div>
<span class="more-meta"> 约 604 字 </span>
<span class="more-meta"> 预计阅读 2 分钟 </span>
</div>
</header>
<div class="post-content">
<div class="post-summary">
SPA单页面 SPA仅在Web页面初始化时加载对应的html,js和css。一旦页面加载完毕,SPA不会因为用户的操作而进行重新加载或者跳转。
</div>
<div class="read-more">
<a href="/post/spa%E5%8D%95%E9%A1%B5%E9%9D%A2%E4%B8%8Evue%E7%9A%84scoped/" class="read-more-link">阅读更多</a>
</div>
</div>
</article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/post/js%E7%9A%84%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/">js的设计模式</a></h1>
<div class="post-meta">
<span class="post-time"> 2019-10-21 </span>
<div class="post-category">
<a href="/categories/js/"> JS </a>
<a href="/categories/%E6%96%B0%E7%9F%A5%E8%AF%86/"> 新知识 </a>
</div>
<span class="more-meta"> 约 479 字 </span>
<span class="more-meta"> 预计阅读 1 分钟 </span>
</div>
</header>
<div class="post-content">
<div class="post-summary">
一开始都没听说过这个名词,后面看了几篇文章才算理解,写一篇记录以防忘记 一、观察者模式(Observer) 观察者模式指的是一个对象(Subje
</div>
<div class="read-more">
<a href="/post/js%E7%9A%84%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/" class="read-more-link">阅读更多</a>
</div>
</div>
</article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/post/es6%E4%B9%8Bclass%E4%B8%8E%E7%BB%A7%E6%89%BF/">ES6之class与继承</a></h1>
<div class="post-meta">
<span class="post-time"> 2019-10-20 </span>
<div class="post-category">
<a href="/categories/js/"> JS </a>
<a href="/categories/%E6%96%B0%E7%9F%A5%E8%AF%86/"> 新知识 </a>
</div>
<span class="more-meta"> 约 656 字 </span>
<span class="more-meta"> 预计阅读 2 分钟 </span>
</div>
</header>
<div class="post-content">
<div class="post-summary">
首先来看看JS中继承的两种写法 ES5 写法 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 function Human(name){ this.name = name } Human.prototype.run = function(){ console.log("我叫&#
</div>
<div class="read-more">
<a href="/post/es6%E4%B9%8Bclass%E4%B8%8E%E7%BB%A7%E6%89%BF/" class="read-more-link">阅读更多</a>
</div>
</div>
</article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/post/%E6%95%B0%E7%BB%84%E7%9A%84foreachmapreduce/">数组的一些方法</a></h1>
<div class="post-meta">
<span class="post-time"> 2019-10-19 </span>
<div class="post-category">
<a href="/categories/js/"> JS </a>
<a href="/categories/%E6%96%B0%E7%9F%A5%E8%AF%86/"> 新知识 </a>
</div>
<span class="more-meta"> 约 567 字 </span>
<span class="more-meta"> 预计阅读 2 分钟 </span>
</div>
</header>
<div class="post-content">
<div class="post-summary">
forEach() 方法对数组的每个元素执行一次提供的函数。 1 2 3 4 5 var array1 = ['a', 'b', 'c']; array1.forEach(function(element) { console.log(element); }); 原理: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 function forEach(array,x){ for(let i=0;i<array.length;i++){ x(array[i],i) } } //调用
</div>
<div class="read-more">
<a href="/post/%E6%95%B0%E7%BB%84%E7%9A%84foreachmapreduce/" class="read-more-link">阅读更多</a>
</div>
</div>
</article>
</section>
<nav class="pagination">
<a class="next" href="/page/2/">
<span class="next-text">下一页</span>
<i class="iconfont icon-right"></i>
</a>
</nav>
</div>
</div>
</main>
<footer id="footer" class="footer">
<div class="social-links">
<a href="mailto:[email protected]" class="iconfont icon-email" title="email"></a>
<a href="https://www.google.com.hk/" class="iconfont icon-google" title="google"></a>
<a href="https://github.com/" class="iconfont icon-github" title="github"></a>
<a href="https://www.weibo.com" class="iconfont icon-weibo" title="weibo"></a>
<a href="https://www.zhihu.com/" class="iconfont icon-zhihu" title="zhihu"></a>
<a href="https://www.douban.com/" class="iconfont icon-douban" title="douban"></a>
<a href="https://www.bilibili.com/" class="iconfont icon-bilibili" title="bilibili"></a>
<a href="https://yangj0605.github.io/index.xml" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
</div>
<div class="copyright">
<span class="power-by">
由 <a class="hexo-link" href="https://gohugo.io">Hugo</a> 强力驱动
</span>
<span class="division">|</span>
<span class="theme-info">
主题 -
<a class="theme-link" href="https://github.com/olOwOlo/hugo-theme-even">Even</a>
</span>
<span class="copyright-year">
©
2019
<span class="heart">
<i class="iconfont icon-heart"></i>
</span>
<span class="author">mo白</span>
</span>
</div>
</footer>
<div class="back-to-top" id="back-to-top">
<i class="iconfont icon-up"></i>
</div>
</div>
<script src="/lib/highlight/highlight.pack.js?v=20171001"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/slideout.min.js" integrity="sha256-t+zJ/g8/KXIJMjSVQdnibt4dlaDxc9zXr/9oNPeWqdg=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@fancyapps/[email protected]/dist/jquery.fancybox.min.js" integrity="sha256-XVLffZaxoWfGUEbdzuLi7pwaUJv1cecsQJQqGLe7axY=" crossorigin="anonymous"></script>
<script type="text/javascript" src="/dist/even.26188efa.min.js"></script>
</body>
</html>