-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
365 lines (213 loc) · 9.44 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hexo</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta property="og:type" content="website">
<meta property="og:title" content="Hexo">
<meta property="og:url" content="http://yoursite.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="icon" href="/favicon.png">
<link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="/css/style.css">
<meta name="generator" content="Hexo 4.2.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"></a>
<a class="main-nav-link" href="/">Home</a>
<a class="main-nav-link" href="/archives">Archives</a>
</nav>
<nav id="sub-nav">
<a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
<a id="nav-search-btn" class="nav-icon" title="Search"></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://yoursite.com"></form>
</div>
</div>
</div>
</header>
<div class="outer">
<section id="main">
<article id="post-数组去重" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2020/04/10/%E6%95%B0%E7%BB%84%E5%8E%BB%E9%87%8D/" class="article-date">
<time datetime="2020-04-10T09:29:18.000Z" itemprop="datePublished">2020-04-10</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2020/04/10/%E6%95%B0%E7%BB%84%E5%8E%BB%E9%87%8D/">数组去重(性能依次递减)</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<ol>
<li>一层for循环 + 对象属性不可以重名</li>
<li>ES6 Set</li>
<li>sort先排序 + 一层for循环</li>
<li>一层for循环 + indexOf/includes</li>
<li>filter + indexOf</li>
<li>两层for循环 + splice</li>
</ol>
<p class="article-more-link">
<a href="/2020/04/10/%E6%95%B0%E7%BB%84%E5%8E%BB%E9%87%8D/#more">Read More</a>
</p>
</div>
<footer class="article-footer">
<a data-url="http://yoursite.com/2020/04/10/%E6%95%B0%E7%BB%84%E5%8E%BB%E9%87%8D/" data-id="ck8u013wg0000mwrddkofdq01" class="article-share-link">Share</a>
</footer>
</div>
</article>
<article id="post-同源-跨域" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2020/03/19/%E5%90%8C%E6%BA%90-%E8%B7%A8%E5%9F%9F/" class="article-date">
<time datetime="2020-03-19T13:37:37.000Z" itemprop="datePublished">2020-03-19</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2020/03/19/%E5%90%8C%E6%BA%90-%E8%B7%A8%E5%9F%9F/">同源 跨域</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
</div>
<footer class="article-footer">
<a data-url="http://yoursite.com/2020/03/19/%E5%90%8C%E6%BA%90-%E8%B7%A8%E5%9F%9F/" data-id="ck8tyownh00006crd0hox81cv" class="article-share-link">Share</a>
</footer>
</div>
</article>
<article id="post-同源跨域" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2020/03/19/%E5%90%8C%E6%BA%90%E8%B7%A8%E5%9F%9F/" class="article-date">
<time datetime="2020-03-19T13:37:22.000Z" itemprop="datePublished">2020-03-19</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2020/03/19/%E5%90%8C%E6%BA%90%E8%B7%A8%E5%9F%9F/">同源跨域</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
</div>
<footer class="article-footer">
<a data-url="http://yoursite.com/2020/03/19/%E5%90%8C%E6%BA%90%E8%B7%A8%E5%9F%9F/" data-id="ck8tyownt00016crdbg9eek3r" class="article-share-link">Share</a>
</footer>
</div>
</article>
<article id="post-first-post" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2020/03/19/first-post/" class="article-date">
<time datetime="2020-03-19T13:08:00.000Z" itemprop="datePublished">2020-03-19</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2020/03/19/first-post/">first</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>焦雪艳</p>
<p class="article-more-link">
<a href="/2020/03/19/first-post/#more">Read More</a>
</p>
</div>
<footer class="article-footer">
<a data-url="http://yoursite.com/2020/03/19/first-post/" data-id="ck7ysrqpm0000xsv17skg63df" class="article-share-link">Share</a>
</footer>
</div>
</article>
<article id="post-hello-world" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2020/03/17/hello-world/" class="article-date">
<time datetime="2020-03-17T05:37:25.156Z" itemprop="datePublished">2020-03-17</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2020/03/17/hello-world/">Hello World</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>Welcome to <a href="https://hexo.io/" target="_blank" rel="noopener">Hexo</a>! This is your very first post. Check <a href="https://hexo.io/docs/" target="_blank" rel="noopener">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a href="https://hexo.io/docs/troubleshooting.html" target="_blank" rel="noopener">troubleshooting</a> or you can ask me on <a href="https://github.com/hexojs/hexo/issues" target="_blank" rel="noopener">GitHub</a>.</p>
<p class="article-more-link">
<a href="/2020/03/17/hello-world/#more">Read More</a>
</p>
</div>
<footer class="article-footer">
<a data-url="http://yoursite.com/2020/03/17/hello-world/" data-id="ck7vgwk340000b0v1ce6s0kgh" class="article-share-link">Share</a>
</footer>
</div>
</article>
</section>
<aside id="sidebar">
<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/2020/04/">April 2020</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/03/">March 2020</a></li></ul>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">Recent Posts</h3>
<div class="widget">
<ul>
<li>
<a href="/2020/04/10/%E6%95%B0%E7%BB%84%E5%8E%BB%E9%87%8D/">数组去重(性能依次递减)</a>
</li>
<li>
<a href="/2020/03/19/%E5%90%8C%E6%BA%90-%E8%B7%A8%E5%9F%9F/">同源 跨域</a>
</li>
<li>
<a href="/2020/03/19/%E5%90%8C%E6%BA%90%E8%B7%A8%E5%9F%9F/">同源跨域</a>
</li>
<li>
<a href="/2020/03/19/first-post/">first</a>
</li>
<li>
<a href="/2020/03/17/hello-world/">Hello World</a>
</li>
</ul>
</div>
</div>
</aside>
</div>
<footer id="footer">
<div class="outer">
<div id="footer-info" class="inner">
© 2020 John Doe<br>
Powered by <a href="http://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="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css">
<script src="/fancybox/jquery.fancybox.pack.js"></script>
<script src="/js/script.js"></script>
</div>
</body>
</html>