-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
400 lines (353 loc) · 48.7 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
<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>阿淳 - 个人博客站</title><meta name="author" content="阿淳"><meta name="copyright" content="阿淳"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="一个热爱学习且三分热度的家伙">
<meta property="og:type" content="website">
<meta property="og:title" content="阿淳">
<meta property="og:url" content="http://zhihui.site/index.html">
<meta property="og:site_name" content="阿淳">
<meta property="og:description" content="一个热爱学习且三分热度的家伙">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="http://zhihui.site/img/head.jpg">
<meta property="article:author" content="阿淳">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="http://zhihui.site/img/head.jpg"><link rel="shortcut icon" href="/img/favicon.png"><link rel="canonical" href="http://zhihui.site/"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//hm.baidu.com"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><script>var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?edc1238467f9e68a7fe8f8beafb872ea";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script><link rel="stylesheet" href="/font1.ttf" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = {
root: '/',
algolia: undefined,
localSearch: {"path":"search.xml","languages":{"hits_empty":"找不到您查询的内容:${query}"}},
translate: {"defaultEncoding":2,"translateDelay":0,"msgToTraditionalChinese":"繁","msgToSimplifiedChinese":"簡"},
noticeOutdate: undefined,
highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true},
copy: {
success: '复制成功',
error: '复制错误',
noSupport: '浏览器不支持'
},
relativeDate: {
homepage: false,
post: false
},
runtime: '天',
date_suffix: {
just: '刚刚',
min: '分钟前',
hour: '小时前',
day: '天前',
month: '个月前'
},
copyright: undefined,
lightbox: 'fancybox',
Snackbar: undefined,
source: {
jQuery: 'https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js',
justifiedGallery: {
js: 'https://cdn.jsdelivr.net/npm/justifiedGallery/dist/js/jquery.justifiedGallery.min.js',
css: 'https://cdn.jsdelivr.net/npm/justifiedGallery/dist/css/justifiedGallery.min.css'
},
fancybox: {
js: 'https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.js',
css: 'https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.css'
}
},
isPhotoFigcaption: false,
islazyload: false,
isanchor: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
title: '阿淳',
isPost: false,
isHome: true,
isHighlightShrink: false,
isToc: false,
postUpdate: '2022-03-09 16:31:29'
}</script><noscript><style type="text/css">
#nav {
opacity: 1
}
.justified-gallery img {
opacity: 1
}
#recent-posts time,
#post-meta time {
display: inline !important
}
</style></noscript><script>(win=>{
win.saveToLocal = {
set: function setWithExpiry(key, value, ttl) {
if (ttl === 0) return
const now = new Date()
const expiryDay = ttl * 86400000
const item = {
value: value,
expiry: now.getTime() + expiryDay,
}
localStorage.setItem(key, JSON.stringify(item))
},
get: function getWithExpiry(key) {
const itemStr = localStorage.getItem(key)
if (!itemStr) {
return undefined
}
const item = JSON.parse(itemStr)
const now = new Date()
if (now.getTime() > item.expiry) {
localStorage.removeItem(key)
return undefined
}
return item.value
}
}
win.getScript = url => new Promise((resolve, reject) => {
const script = document.createElement('script')
script.src = url
script.async = true
script.onerror = reject
script.onload = script.onreadystatechange = function() {
const loadState = this.readyState
if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
script.onload = script.onreadystatechange = null
resolve()
}
document.head.appendChild(script)
})
win.activateDarkMode = function () {
document.documentElement.setAttribute('data-theme', 'dark')
if (document.querySelector('meta[name="theme-color"]') !== null) {
document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
}
}
win.activateLightMode = function () {
document.documentElement.setAttribute('data-theme', 'light')
if (document.querySelector('meta[name="theme-color"]') !== null) {
document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
}
}
const t = saveToLocal.get('theme')
if (t === 'dark') activateDarkMode()
else if (t === 'light') activateLightMode()
const asideStatus = saveToLocal.get('aside-status')
if (asideStatus !== undefined) {
if (asideStatus === 'hide') {
document.documentElement.classList.add('hide-aside')
} else {
document.documentElement.classList.remove('hide-aside')
}
}
const detectApple = () => {
if (GLOBAL_CONFIG_SITE.isHome && /iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
document.documentElement.classList.add('apple')
}
}
detectApple()
document.addEventListener('pjax:complete', detectApple)})(window)</script><link rel="stylesheet" href="/css/custom.css" media="defer" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/animate.css@4.1.1/animate.min.css" media="defer" onload="this.media='all'"><!-- hexo injector head_end start --><link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Zfour/hexo-electric-clock@1.0.6/clock.css"><!-- hexo injector head_end end --><meta name="generator" content="Hexo 5.4.0"></head><body><div id="web_bg"></div><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="/img/head.jpg" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="site-data"><div class="data-item is-center"><div class="data-item-link"><a href="/archives/"><div class="headline">文章</div><div class="length-num">11</div></a></div></div><div class="data-item is-center"><div class="data-item-link"><a href="/tags/"><div class="headline">标签</div><div class="length-num">12</div></a></div></div><div class="data-item is-center"><div class="data-item-link"><a href="/categories/"><div class="headline">分类</div><div class="length-num">3</div></a></div></div></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 主页</span></a></div><div class="menus_item"><a class="site-page" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 文章</span><i class="fas fa-chevron-down expand hide"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 全部</span></a></li><li><a class="site-page child" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></li><li><a class="site-page child" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="javascript:void(0);"><i class="fa-fw fas fa-coffee"></i><span> 生活</span><i class="fas fa-chevron-down expand hide"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/comments/"><i class="fa-fw fas fa-feather"></i><span> 留言</span></a></li><li><a class="site-page child" href="/artitalk/"><i class="fa-fw fas fa-comments"></i><span> 说说</span></a></li><li><a class="site-page child" href="/map/"><i class="fa-fw fas fa-images"></i><span> 相册</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/books/"><i class="fa-fw fas fa-book"></i><span> 追剧看书</span></a></div><div class="menus_item"><a class="site-page" href="/me/"><i class="fa-fw fas fa-male"></i><span> 关于我</span></a></div><div class="menus_item"><a class="site-page" target="_blank" rel="noopener" href="http://nav.zhihui.site"><i class="fa-fw fas fa-link"></i><span> 导航</span></a></div><div class="menus_item"><a class="site-page" href="javascript:void(0);"><i class="fa-fw fas fa-link"></i><span> 链接库</span><i class="fas fa-chevron-down expand hide"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/link/"><i class="fa-fw fas fa-tree"></i><span> 朋友圈</span></a></li><li><a class="site-page child" href="/it/"><i class="fa-fw fas fa-thumbs-up"></i><span> 黑科技</span></a></li></ul></div></div></div></div><div class="page" id="body-wrap"><header class="full_page" id="page-header" style="background: transparent"><nav id="nav"><span id="blog_name"><a id="site-name" href="/">阿淳</a></span><div id="menus"><div id="search-button"><a class="site-page social-icon search"><i class="fas fa-search fa-fw"></i><span> 搜索</span></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 主页</span></a></div><div class="menus_item"><a class="site-page" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 文章</span><i class="fas fa-chevron-down expand hide"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 全部</span></a></li><li><a class="site-page child" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></li><li><a class="site-page child" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="javascript:void(0);"><i class="fa-fw fas fa-coffee"></i><span> 生活</span><i class="fas fa-chevron-down expand hide"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/comments/"><i class="fa-fw fas fa-feather"></i><span> 留言</span></a></li><li><a class="site-page child" href="/artitalk/"><i class="fa-fw fas fa-comments"></i><span> 说说</span></a></li><li><a class="site-page child" href="/map/"><i class="fa-fw fas fa-images"></i><span> 相册</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/books/"><i class="fa-fw fas fa-book"></i><span> 追剧看书</span></a></div><div class="menus_item"><a class="site-page" href="/me/"><i class="fa-fw fas fa-male"></i><span> 关于我</span></a></div><div class="menus_item"><a class="site-page" target="_blank" rel="noopener" href="http://nav.zhihui.site"><i class="fa-fw fas fa-link"></i><span> 导航</span></a></div><div class="menus_item"><a class="site-page" href="javascript:void(0);"><i class="fa-fw fas fa-link"></i><span> 链接库</span><i class="fas fa-chevron-down expand hide"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/link/"><i class="fa-fw fas fa-tree"></i><span> 朋友圈</span></a></li><li><a class="site-page child" href="/it/"><i class="fa-fw fas fa-thumbs-up"></i><span> 黑科技</span></a></li></ul></div></div><div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="site-info"><div class="ih-item circle effect right_to_left"><a class="blog-button" href="/#blog" title="主页"><div class="img"><img src="/img/head.jpg" alt="img"></div><div class="info"><div class="info-back"><h2>热爱生活</h2><br> <p>IT学习者</p></div></div></a></div><h1 id="site-title">阿淳</h1><div id="site-subtitle"><span id="subtitle"></span></div><div id="site_social_icons"><a class="social-icon" href="https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzU0OTk1MzMwMA==&scene=123#wechat_redirect" target="_blank" title="weixin"><i class="fab fa-weixin"></i></a><a class="social-icon" href="http://wpa.qq.com/msgrd?v=3&uin=914375390&site=qq&menu=yes" target="_blank" title="qq"><i class="fab fa-qq"></i></a><a class="social-icon" href="mailto:914375390@qq.com" target="_blank" title="Email"><i class="fas fa-envelope"></i></a></div></div><div id="scroll-down"><i class="fas fa-angle-down scroll-down-effects"></i></div></header><main class="layout" id="content-inner"><div class="recent-posts" id="recent-posts"><div class="recent-post-item wow animate__zoomIn"><div class="post_cover left_radius"><a href="/2021/11/04/%E4%B8%BA%E4%BB%80%E4%B9%88%E8%AF%B4%E9%93%BE%E8%A1%A8%E5%9C%A8%E6%8F%92%E5%85%A5%E5%92%8C%E5%88%A0%E9%99%A4%E4%B8%8A%E6%95%88%E7%8E%87%E9%AB%98%E4%BA%8E%E6%95%B0%E7%BB%84/" title="为什么说链表在插入和删除上效率高于数组"> <img class="post_bg" src="/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="为什么说链表在插入和删除上效率高于数组"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/11/04/%E4%B8%BA%E4%BB%80%E4%B9%88%E8%AF%B4%E9%93%BE%E8%A1%A8%E5%9C%A8%E6%8F%92%E5%85%A5%E5%92%8C%E5%88%A0%E9%99%A4%E4%B8%8A%E6%95%88%E7%8E%87%E9%AB%98%E4%BA%8E%E6%95%B0%E7%BB%84/" title="为什么说链表在插入和删除上效率高于数组">为什么说链表在插入和删除上效率高于数组</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-11-04T15:05:50.000Z" title="发表于 2021-11-04 23:05:50">2021-11-04</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E7%BC%96%E7%A8%8B/">编程</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/">数据结构</a></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-comments"></i><a class="twikoo-count" href="/2021/11/04/%E4%B8%BA%E4%BB%80%E4%B9%88%E8%AF%B4%E9%93%BE%E8%A1%A8%E5%9C%A8%E6%8F%92%E5%85%A5%E5%92%8C%E5%88%A0%E9%99%A4%E4%B8%8A%E6%95%88%E7%8E%87%E9%AB%98%E4%BA%8E%E6%95%B0%E7%BB%84/#post-comment"></a><span class="article-meta-label"> 条评论</span></span></div><div class="content"></div></div></div><div class="recent-post-item wow animate__zoomIn"><div class="post_cover right_radius"><a href="/2021/11/04/autojs%E4%B9%8B%E9%98%B2%E4%BB%A3%E7%90%86vpn%E6%8A%93%E5%8C%85/" title="autojs之防代理vpn抓包"> <img class="post_bg" src="/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="autojs之防代理vpn抓包"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/11/04/autojs%E4%B9%8B%E9%98%B2%E4%BB%A3%E7%90%86vpn%E6%8A%93%E5%8C%85/" title="autojs之防代理vpn抓包">autojs之防代理vpn抓包</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-11-04T14:52:27.000Z" title="发表于 2021-11-04 22:52:27">2021-11-04</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E7%BC%96%E7%A8%8B/">编程</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E4%BA%8C%E5%88%9B/">二创</a><span class="article-meta__link">•</span><a class="article-meta__tags" href="/tags/autojs/">autojs</a></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-comments"></i><a class="twikoo-count" href="/2021/11/04/autojs%E4%B9%8B%E9%98%B2%E4%BB%A3%E7%90%86vpn%E6%8A%93%E5%8C%85/#post-comment"></a><span class="article-meta-label"> 条评论</span></span></div><div class="content"></div></div></div><div class="recent-post-item wow animate__zoomIn"><div class="post_cover left_radius"><a href="/2021/11/04/%E6%97%A0%E7%BA%BF%E7%BD%91%E5%8D%A1windows%E4%BB%8D%E5%9C%A8%E8%AE%BE%E7%BD%AE%E6%AD%A4%E8%AE%BE%E5%A4%87%E7%9A%84%E7%B1%BB%E9%85%8D%E7%BD%AE%EF%BC%8C%E4%BB%A3%E7%A0%8156/" title="无线网卡windows仍在设置此设备的类配置,代码56"> <img class="post_bg" src="/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="无线网卡windows仍在设置此设备的类配置,代码56"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/11/04/%E6%97%A0%E7%BA%BF%E7%BD%91%E5%8D%A1windows%E4%BB%8D%E5%9C%A8%E8%AE%BE%E7%BD%AE%E6%AD%A4%E8%AE%BE%E5%A4%87%E7%9A%84%E7%B1%BB%E9%85%8D%E7%BD%AE%EF%BC%8C%E4%BB%A3%E7%A0%8156/" title="无线网卡windows仍在设置此设备的类配置,代码56">无线网卡windows仍在设置此设备的类配置,代码56</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-11-04T13:52:27.000Z" title="发表于 2021-11-04 21:52:27">2021-11-04</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E7%94%9F%E6%B4%BB/">生活</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E4%BA%8C%E5%88%9B/">二创</a><span class="article-meta__link">•</span><a class="article-meta__tags" href="/tags/window%E6%95%85%E9%9A%9C/">window故障</a></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-comments"></i><a class="twikoo-count" href="/2021/11/04/%E6%97%A0%E7%BA%BF%E7%BD%91%E5%8D%A1windows%E4%BB%8D%E5%9C%A8%E8%AE%BE%E7%BD%AE%E6%AD%A4%E8%AE%BE%E5%A4%87%E7%9A%84%E7%B1%BB%E9%85%8D%E7%BD%AE%EF%BC%8C%E4%BB%A3%E7%A0%8156/#post-comment"></a><span class="article-meta-label"> 条评论</span></span></div><div class="content"></div></div></div><div class="recent-post-item wow animate__zoomIn"><div class="post_cover right_radius"><a href="/2021/09/15/%E4%B8%A4%E4%B8%AA%E8%91%97%E5%90%8D%E7%9A%84%E5%BF%83%E7%90%86%E5%AD%A6%E7%8E%B0%E8%B1%A1/" title="两个著名的心理学现象"> <img class="post_bg" src="/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="两个著名的心理学现象"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/09/15/%E4%B8%A4%E4%B8%AA%E8%91%97%E5%90%8D%E7%9A%84%E5%BF%83%E7%90%86%E5%AD%A6%E7%8E%B0%E8%B1%A1/" title="两个著名的心理学现象">两个著名的心理学现象</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-09-15T11:21:38.000Z" title="发表于 2021-09-15 19:21:38">2021-09-15</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E7%94%9F%E6%B4%BB/">生活</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E5%BF%83%E7%90%86-%E8%BD%AC%E8%BD%BD/">-心理 -转载</a></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-comments"></i><a class="twikoo-count" href="/2021/09/15/%E4%B8%A4%E4%B8%AA%E8%91%97%E5%90%8D%E7%9A%84%E5%BF%83%E7%90%86%E5%AD%A6%E7%8E%B0%E8%B1%A1/#post-comment"></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">一个人的伟大在于他有着常识底线,无畏于强者,并勇敢地站在正确的方向上</div></div></div><div class="recent-post-item wow animate__zoomIn"><div class="post_cover left_radius"><a href="/2021/09/10/%E5%BE%AE%E4%BF%A1%E5%B0%8F%E7%A8%8B%E5%BA%8F%E4%B9%8B%E4%B8%8B%E6%8B%89%E5%88%97%E8%A1%A8/" title="微信小程序之下拉列表"> <img class="post_bg" src="/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="微信小程序之下拉列表"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/09/10/%E5%BE%AE%E4%BF%A1%E5%B0%8F%E7%A8%8B%E5%BA%8F%E4%B9%8B%E4%B8%8B%E6%8B%89%E5%88%97%E8%A1%A8/" title="微信小程序之下拉列表">微信小程序之下拉列表</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-09-10T03:16:28.000Z" title="发表于 2021-09-10 11:16:28">2021-09-10</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E7%BC%96%E7%A8%8B/">编程</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E4%BA%8C%E5%88%9B/">二创</a><span class="article-meta__link">•</span><a class="article-meta__tags" href="/tags/%E5%B0%8F%E7%A8%8B%E5%BA%8F/">小程序</a></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-comments"></i><a class="twikoo-count" href="/2021/09/10/%E5%BE%AE%E4%BF%A1%E5%B0%8F%E7%A8%8B%E5%BA%8F%E4%B9%8B%E4%B8%8B%E6%8B%89%E5%88%97%E8%A1%A8/#post-comment"></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">微信小程序之自定义下拉列表组件,可能以后官方会出吧</div></div></div><div class="recent-post-item wow animate__zoomIn"><div class="post_cover right_radius"><a href="/2021/08/17/%E5%A6%82%E4%BD%95%E5%B0%86hexo-douban%E5%A4%9A%E4%B8%AA%E6%A8%A1%E5%9D%97%E5%90%88%E5%B9%B6/" title="如何将hexo-douban多个模块合并"> <img class="post_bg" src="/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="如何将hexo-douban多个模块合并"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/08/17/%E5%A6%82%E4%BD%95%E5%B0%86hexo-douban%E5%A4%9A%E4%B8%AA%E6%A8%A1%E5%9D%97%E5%90%88%E5%B9%B6/" title="如何将hexo-douban多个模块合并">如何将hexo-douban多个模块合并</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-08-17T10:32:46.000Z" title="发表于 2021-08-17 18:32:46">2021-08-17</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E7%BC%96%E7%A8%8B/">编程</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E5%8E%9F%E5%88%9B/">原创</a><span class="article-meta__link">•</span><a class="article-meta__tags" href="/tags/HEXO/">HEXO</a></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-comments"></i><a class="twikoo-count" href="/2021/08/17/%E5%A6%82%E4%BD%95%E5%B0%86hexo-douban%E5%A4%9A%E4%B8%AA%E6%A8%A1%E5%9D%97%E5%90%88%E5%B9%B6/#post-comment"></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">总觉得有比这更好,更简单的方法,但是暂时没找到</div></div></div><div class="recent-post-item wow animate__zoomIn"><div class="post_cover left_radius"><a href="/2021/08/15/%E4%BD%A0%E6%98%AF%E5%A6%82%E4%BD%95%E8%A2%AB%E5%8A%A3%E8%B4%A8%E4%BF%A1%E6%81%AF%E5%8C%85%E5%9B%B4%E7%9A%84/" title="你是如何被劣质信息包围的"> <img class="post_bg" src="/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="你是如何被劣质信息包围的"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/08/15/%E4%BD%A0%E6%98%AF%E5%A6%82%E4%BD%95%E8%A2%AB%E5%8A%A3%E8%B4%A8%E4%BF%A1%E6%81%AF%E5%8C%85%E5%9B%B4%E7%9A%84/" title="你是如何被劣质信息包围的">你是如何被劣质信息包围的</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-08-15T02:59:23.000Z" title="发表于 2021-08-15 10:59:23">2021-08-15</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E7%94%9F%E6%B4%BB/">生活</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E7%A7%91%E6%99%AE/">科普</a><span class="article-meta__link">•</span><a class="article-meta__tags" href="/tags/%E8%BD%AC%E8%BD%BD/">转载</a></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-comments"></i><a class="twikoo-count" href="/2021/08/15/%E4%BD%A0%E6%98%AF%E5%A6%82%E4%BD%95%E8%A2%AB%E5%8A%A3%E8%B4%A8%E4%BF%A1%E6%81%AF%E5%8C%85%E5%9B%B4%E7%9A%84/#post-comment"></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">在信息世界,如何打破信息的不对称</div></div></div><div class="recent-post-item wow animate__zoomIn"><div class="post_cover right_radius"><a href="/2021/08/14/%E9%AB%98%E8%B4%A8%E9%87%8F%E8%B5%84%E6%BA%90%E9%9B%86%E9%94%A6/" title="高质量资源集锦"> <img class="post_bg" src="/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="高质量资源集锦"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/08/14/%E9%AB%98%E8%B4%A8%E9%87%8F%E8%B5%84%E6%BA%90%E9%9B%86%E9%94%A6/" title="高质量资源集锦">高质量资源集锦</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-08-14T14:10:35.000Z" title="发表于 2021-08-14 22:10:35">2021-08-14</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E8%B5%84%E6%BA%90/">资源</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E5%8E%9F%E5%88%9B/">原创</a></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-comments"></i><a class="twikoo-count" href="/2021/08/14/%E9%AB%98%E8%B4%A8%E9%87%8F%E8%B5%84%E6%BA%90%E9%9B%86%E9%94%A6/#post-comment"></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">你是否经历过在网络上搜索不尽如人意,现在我把它们分享给你</div></div></div><div class="recent-post-item wow animate__zoomIn"><div class="post_cover left_radius"><a href="/2021/08/14/%E4%BB%80%E4%B9%88%E6%98%AF%E5%91%BD/" title="什么是命"> <img class="post_bg" src="/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="什么是命"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/08/14/%E4%BB%80%E4%B9%88%E6%98%AF%E5%91%BD/" title="什么是命">什么是命</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-08-14T07:39:39.000Z" title="发表于 2021-08-14 15:39:39">2021-08-14</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E7%94%9F%E6%B4%BB/">生活</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E4%BA%BA%E7%94%9F/">人生</a><span class="article-meta__link">•</span><a class="article-meta__tags" href="/tags/%E8%BD%AC%E8%BD%BD/">转载</a></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-comments"></i><a class="twikoo-count" href="/2021/08/14/%E4%BB%80%E4%B9%88%E6%98%AF%E5%91%BD/#post-comment"></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">在网络上看到的贴子,写的不错</div></div></div><div class="recent-post-item wow animate__zoomIn"><div class="post_cover right_radius"><a href="/2021/08/14/%E7%94%B7%E6%9C%8B%E5%8F%8B%E5%81%B7%E5%81%B7%E7%9C%8B%E7%89%87%EF%BC%8C%E7%AE%97%E4%B8%8D%E7%AE%97%E5%87%BA%E8%BD%A8%EF%BC%9F/" title="男朋友偷偷看片,算不算出轨?"> <img class="post_bg" src="/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="男朋友偷偷看片,算不算出轨?"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/08/14/%E7%94%B7%E6%9C%8B%E5%8F%8B%E5%81%B7%E5%81%B7%E7%9C%8B%E7%89%87%EF%BC%8C%E7%AE%97%E4%B8%8D%E7%AE%97%E5%87%BA%E8%BD%A8%EF%BC%9F/" title="男朋友偷偷看片,算不算出轨?">男朋友偷偷看片,算不算出轨?</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-08-14T05:52:05.000Z" title="发表于 2021-08-14 13:52:05">2021-08-14</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E7%94%9F%E6%B4%BB/">生活</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E4%B8%A4%E6%80%A7/">两性</a><span class="article-meta__link">•</span><a class="article-meta__tags" href="/tags/%E8%BD%AC%E8%BD%BD/">转载</a></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-comments"></i><a class="twikoo-count" href="/2021/08/14/%E7%94%B7%E6%9C%8B%E5%8F%8B%E5%81%B7%E5%81%B7%E7%9C%8B%E7%89%87%EF%BC%8C%E7%AE%97%E4%B8%8D%E7%AE%97%E5%87%BA%E8%BD%A8%EF%BC%9F/#post-comment"></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">为什么要偷偷看呢哈哈</div></div></div><nav id="pagination"><div class="pagination"><span class="page-number current">1</span><a class="page-number" href="/page/2/#content-inner">2</a><a class="extend next" rel="next" href="/page/2/#content-inner"><i class="fas fa-chevron-right fa-fw"></i></a></div></nav></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src="/img/head.jpg" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">阿淳</div><div class="author-info__description">一个热爱学习且三分热度的家伙</div></div><div class="card-info-data"><div class="card-info-data-item is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">11</div></a></div><div class="card-info-data-item is-center"><a href="/tags/"><div class="headline">标签</div><div class="length-num">12</div></a></div><div class="card-info-data-item is-center"><a href="/categories/"><div class="headline">分类</div><div class="length-num">3</div></a></div></div><div class="card-info-social-icons is-center"><a class="social-icon" href="https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzU0OTk1MzMwMA==&scene=123#wechat_redirect" target="_blank" title="weixin"><i class="fab fa-weixin"></i></a><a class="social-icon" href="http://wpa.qq.com/msgrd?v=3&uin=914375390&site=qq&menu=yes" target="_blank" title="qq"><i class="fab fa-qq"></i></a><a class="social-icon" href="mailto:914375390@qq.com" target="_blank" title="Email"><i class="fas fa-envelope"></i></a></div></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn card-announcement-animation"></i><span>公告</span></div><div class="announcement_content">微信qq:914375390 欢迎访问深入交流,我想要听听你的想法!</div></div><div class="sticky_layout"><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/2021/11/04/%E4%B8%BA%E4%BB%80%E4%B9%88%E8%AF%B4%E9%93%BE%E8%A1%A8%E5%9C%A8%E6%8F%92%E5%85%A5%E5%92%8C%E5%88%A0%E9%99%A4%E4%B8%8A%E6%95%88%E7%8E%87%E9%AB%98%E4%BA%8E%E6%95%B0%E7%BB%84/" title="为什么说链表在插入和删除上效率高于数组"><img src="/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="为什么说链表在插入和删除上效率高于数组"/></a><div class="content"><a class="title" href="/2021/11/04/%E4%B8%BA%E4%BB%80%E4%B9%88%E8%AF%B4%E9%93%BE%E8%A1%A8%E5%9C%A8%E6%8F%92%E5%85%A5%E5%92%8C%E5%88%A0%E9%99%A4%E4%B8%8A%E6%95%88%E7%8E%87%E9%AB%98%E4%BA%8E%E6%95%B0%E7%BB%84/" title="为什么说链表在插入和删除上效率高于数组">为什么说链表在插入和删除上效率高于数组</a><time datetime="2021-11-04T15:05:50.000Z" title="发表于 2021-11-04 23:05:50">2021-11-04</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2021/11/04/autojs%E4%B9%8B%E9%98%B2%E4%BB%A3%E7%90%86vpn%E6%8A%93%E5%8C%85/" title="autojs之防代理vpn抓包"><img src="/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="autojs之防代理vpn抓包"/></a><div class="content"><a class="title" href="/2021/11/04/autojs%E4%B9%8B%E9%98%B2%E4%BB%A3%E7%90%86vpn%E6%8A%93%E5%8C%85/" title="autojs之防代理vpn抓包">autojs之防代理vpn抓包</a><time datetime="2021-11-04T14:52:27.000Z" title="发表于 2021-11-04 22:52:27">2021-11-04</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2021/11/04/%E6%97%A0%E7%BA%BF%E7%BD%91%E5%8D%A1windows%E4%BB%8D%E5%9C%A8%E8%AE%BE%E7%BD%AE%E6%AD%A4%E8%AE%BE%E5%A4%87%E7%9A%84%E7%B1%BB%E9%85%8D%E7%BD%AE%EF%BC%8C%E4%BB%A3%E7%A0%8156/" title="无线网卡windows仍在设置此设备的类配置,代码56"><img src="/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="无线网卡windows仍在设置此设备的类配置,代码56"/></a><div class="content"><a class="title" href="/2021/11/04/%E6%97%A0%E7%BA%BF%E7%BD%91%E5%8D%A1windows%E4%BB%8D%E5%9C%A8%E8%AE%BE%E7%BD%AE%E6%AD%A4%E8%AE%BE%E5%A4%87%E7%9A%84%E7%B1%BB%E9%85%8D%E7%BD%AE%EF%BC%8C%E4%BB%A3%E7%A0%8156/" title="无线网卡windows仍在设置此设备的类配置,代码56">无线网卡windows仍在设置此设备的类配置,代码56</a><time datetime="2021-11-04T13:52:27.000Z" title="发表于 2021-11-04 21:52:27">2021-11-04</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2021/09/15/%E4%B8%A4%E4%B8%AA%E8%91%97%E5%90%8D%E7%9A%84%E5%BF%83%E7%90%86%E5%AD%A6%E7%8E%B0%E8%B1%A1/" title="两个著名的心理学现象"><img src="/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="两个著名的心理学现象"/></a><div class="content"><a class="title" href="/2021/09/15/%E4%B8%A4%E4%B8%AA%E8%91%97%E5%90%8D%E7%9A%84%E5%BF%83%E7%90%86%E5%AD%A6%E7%8E%B0%E8%B1%A1/" title="两个著名的心理学现象">两个著名的心理学现象</a><time datetime="2021-09-15T11:21:38.000Z" title="发表于 2021-09-15 19:21:38">2021-09-15</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2021/09/10/%E5%BE%AE%E4%BF%A1%E5%B0%8F%E7%A8%8B%E5%BA%8F%E4%B9%8B%E4%B8%8B%E6%8B%89%E5%88%97%E8%A1%A8/" title="微信小程序之下拉列表"><img src="/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="微信小程序之下拉列表"/></a><div class="content"><a class="title" href="/2021/09/10/%E5%BE%AE%E4%BF%A1%E5%B0%8F%E7%A8%8B%E5%BA%8F%E4%B9%8B%E4%B8%8B%E6%8B%89%E5%88%97%E8%A1%A8/" title="微信小程序之下拉列表">微信小程序之下拉列表</a><time datetime="2021-09-10T03:16:28.000Z" title="发表于 2021-09-10 11:16:28">2021-09-10</time></div></div></div></div><div class="card-widget" id="card-newest-comments"><div class="item-headline"><i class="fas fa-comment-dots"></i><span>最新评论</span></div><div class="aside-list"><span>正在加载中...</span></div></div><div class="card-widget card-webinfo"><div class="item-headline"><i class="fas fa-chart-line"></i><span>网站资讯</span></div><div class="webinfo"><div class="webinfo-item"><div class="item-name">文章数目 :</div><div class="item-count">11</div></div><div class="webinfo-item"><div class="item-name">已运行时间 :</div><div class="item-count" id="runtimeshow" data-publishDate="2021-08-09T16:00:00.000Z"></div></div><div class="webinfo-item"><div class="item-name">本站访客数 :</div><div class="item-count" id="busuanzi_value_site_uv"></div></div><div class="webinfo-item"><div class="item-name">本站总访问量 :</div><div class="item-count" id="busuanzi_value_site_pv"></div></div><div class="webinfo-item"><div class="item-name">最后更新时间 :</div><div class="item-count" id="last-push-date" data-lastPushDate="2022-03-09T08:31:29.029Z"></div></div></div></div></div></div></main><footer id="footer" style="background: transparent"><div id="footer-wrap"><div class="copyright">©2021 - 2022 By 阿淳</div><div class="footer_custom_text"><P><a target="_blank" rel="noopener" href="https://gdca.miit.gov.cn/">粤ICP备2020119449号</a></P> <p><img src="https://img.shields.io/badge/Deposit-Github-purple " title="托管平台为github" alt="img"/><img src="https://img.shields.io/badge/Frame-HEXO-red " title="框架为HEXO" alt="img"/><img src="https://img.shields.io/badge/CDN-%E5%8F%88%E6%8B%8D%E4%BA%91-orange " title="又拍云提供cdn加速" alt="img"/><img src="https://img.shields.io/badge/Comments-Twikoo-green " title="评论由Twikoo提供" alt="img"/><img src="https://img.shields.io/badge/shuoshuo-Artitalk-blue " title="说说由Arittalk提供" alt="img"/></p></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="translateLink" type="button" title="简繁转换">繁</button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button id="go-up" type="button" title="回到顶部"><i class="fas fa-arrow-up"></i></button></div></div><div id="local-search"><div class="search-dialog"><div class="search-dialog__title" id="local-search-title">本地搜索</div><div id="local-input-panel"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章" type="text"/></div></div></div><hr/><div id="local-search-results"></div><span class="search-close-button"><i class="fas fa-times"></i></span></div><div id="search-mask"></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="/js/tw_cn.js"></script><script src="/js/search/local-search.js"></script><div class="js-pjax"><script>(() => {
const getCommentUrl = () => {
const eleGroup = document.querySelectorAll('#recent-posts .article-title')
let urlArray = []
eleGroup.forEach(i=>{
urlArray.push(i.getAttribute('href'))
})
return urlArray
}
const getCount = () => {
const runTwikoo = () => {
twikoo.getCommentsCount({
envId: 'https://twikoo-re6wg0udy-914375390.vercel.app/',
region: 'ap-guangzhou',
urls: getCommentUrl(),
includeReply: false
}).then(function (res) {
document.querySelectorAll('#recent-posts .twikoo-count').forEach((item,index) => {
item.innerText = res[index].count
})
}).catch(function (err) {
console.log(err)
})
}
if (typeof twikoo === 'object') {
runTwikoo()
} else {
getScript('https://cdn.jsdelivr.net/npm/twikoo/dist/twikoo.all.min.js').then(runTwikoo)
}
}
window.pjax ? getCount() : window.addEventListener('load', getCount)
})()</script><script>function subtitleType () {
fetch('https://v1.hitokoto.cn')
.then(response => response.json())
.then(data => {
if (true) {
var from = '出自 ' + data.from
var sub = "关注公众号:‘三更故事吧’获取更多科技".length == 0 ? new Array() : "关注公众号:‘三更故事吧’获取更多科技".split(',')
var both = sub.unshift(data.hitokoto, from)
var typed = new Typed('#subtitle', {
strings: sub,
startDelay: 300,
typeSpeed: 150,
loop: false,
backSpeed: 50,
})
} else {
document.getElementById('subtitle').innerHTML = data.hitokoto
}
})
}
if (true) {
if (typeof Typed === 'function') {
subtitleType()
} else {
getScript('https://cdn.jsdelivr.net/npm/typed.js/lib/typed.min.js').then(subtitleType)
}
} else {
subtitleType()
}
</script></div><script>window.addEventListener('load', () => {
const changeContent = (content) => {
if (content === '') return content
content = content.replace(/<img.*?src="(.*?)"?[^\>]+>/ig, '[图片]') // replace image link
content = content.replace(/<a[^>]+?href=["']?([^"']+)["']?[^>]*>([^<]+)<\/a>/gi, '[链接]') // replace url
content = content.replace(/<pre><code>.*?<\/pre>/gi, '[代码]') // replace code
content = content.replace(/<[^>]+>/g,"") // remove html tag
if (content.length > 150) {
content = content.substring(0,150) + '...'
}
return content
}
const getComment = () => {
const runTwikoo = () => {
twikoo.getRecentComments({
envId: 'https://twikoo-re6wg0udy-914375390.vercel.app/',
region: 'ap-guangzhou',
pageSize: 6,
includeReply: true
}).then(function (res) {
const twikooArray = res.map(e => {
return {
'content': changeContent(e.comment),
'avatar': e.avatar,
'nick': e.nick,
'url': e.url + '#' + e.id,
'date': new Date(e.created).toISOString()
}
})
saveToLocal.set('twikoo-newest-comments', JSON.stringify(twikooArray), 10/(60*24))
generateHtml(twikooArray)
}).catch(function (err) {
const $dom = document.querySelector('#card-newest-comments .aside-list')
$dom.innerHTML= "无法获取评论,请确认相关配置是否正确"
})
}
if (typeof twikoo === 'object') {
runTwikoo()
} else {
getScript('https://cdn.jsdelivr.net/npm/twikoo/dist/twikoo.all.min.js').then(runTwikoo)
}
}
const generateHtml = array => {
let result = ''
if (array.length) {
for (let i = 0; i < array.length; i++) {
result += '<div class=\'aside-list-item\'>'
if (true) {
const name = 'src'
result += `<a href='${array[i].url}' class='thumbnail'><img ${name}='${array[i].avatar}' alt='${array[i].nick}'></a>`
}
result += `<div class='content'>
<a class='comment' href='${array[i].url}'>${array[i].content}</a>
<div class='name'><span>${array[i].nick} / </span><time datetime="${array[i].date}">${btf.diffDate(array[i].date, true)}</time></div>
</div></div>`
}
} else {
result += '没有评论'
}
let $dom = document.querySelector('#card-newest-comments .aside-list')
$dom.innerHTML= result
window.lazyLoadInstance && window.lazyLoadInstance.update()
window.pjax && window.pjax.refresh($dom)
}
const newestCommentInit = () => {
if (document.querySelector('#card-newest-comments .aside-list')) {
const data = saveToLocal.get('twikoo-newest-comments')
if (data) {
generateHtml(JSON.parse(data))
} else {
getComment()
}
}
}
newestCommentInit()
document.addEventListener('pjax:complete', newestCommentInit)
})</script><div class="aplayer no-destroy" data-id="8117669989" data-server="tencent" data-type="playlist" data-fixed="true" data-mini="true" data-listFolded="false" data-order="random" data-preload="metadata" data-autoplay="true" muted></div><script type="text/javascript" src="/js/FunnyTitle.js"></script><script defer src="https://cdn.jsdelivr.net/gh/graingert/wow@1.3.0/dist/wow.min.js"></script><script defer data-pjax src="/js/wow_init.js"></script><script id="click-show-text" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/click-show-text.min.js" data-mobile="true" data-text="I,LOVE,YOU" data-fontsize="15px" data-random="true" async="async"></script><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.js"></script><script src="https://cdn.jsdelivr.net/gh/metowolf/MetingJS@1.2/dist/Meting.min.js"></script><script src="https://cdn.jsdelivr.net/npm/pjax/pjax.min.js"></script><script>let pjaxSelectors = [
'title',
'#config-diff',
'#body-wrap',
'#rightside-config-hide',
'#rightside-config-show',
'.js-pjax'
]
if (false) {
pjaxSelectors.unshift('meta[property="og:image"]', 'meta[property="og:title"]', 'meta[property="og:url"]')
}
var pjax = new Pjax({
elements: 'a:not([target="_blank"])',
selectors: pjaxSelectors,
cacheBust: false,
analytics: false,
scrollRestoration: false
})
document.addEventListener('pjax:send', function () {
// removeEventListener scroll
window.removeEventListener('scroll', window.tocScrollFn)
window.removeEventListener('scroll', scrollCollect)
typeof preloader === 'object' && preloader.initLoading()
if (window.aplayers) {
for (let i = 0; i < window.aplayers.length; i++) {
if (!window.aplayers[i].options.fixed) {
window.aplayers[i].destroy()
}
}
}
typeof typed === 'object' && typed.destroy()
//reset readmode
const $bodyClassList = document.body.classList
$bodyClassList.contains('read-mode') && $bodyClassList.remove('read-mode')
})
document.addEventListener('pjax:complete', function () {
window.refreshFn()
document.querySelectorAll('script[data-pjax]').forEach(item => {
const newScript = document.createElement('script')
const content = item.text || item.textContent || item.innerHTML || ""
Array.from(item.attributes).forEach(attr => newScript.setAttribute(attr.name, attr.value))
newScript.appendChild(document.createTextNode(content))
item.parentNode.replaceChild(newScript, item)
})
GLOBAL_CONFIG.islazyload && window.lazyLoadInstance.update()
typeof chatBtnFn === 'function' && chatBtnFn()
typeof panguInit === 'function' && panguInit()
// google analytics
typeof gtag === 'function' && gtag('config', '', {'page_path': window.location.pathname});
// baidu analytics
typeof _hmt === 'object' && _hmt.push(['_trackPageview',window.location.pathname]);
typeof loadMeting === 'function' && document.getElementsByClassName('aplayer').length && loadMeting()
// Analytics
if (false) {
MtaH5.pgv()
}
// prismjs
typeof Prism === 'object' && Prism.highlightAll()
typeof preloader === 'object' && preloader.endLoading()
})
document.addEventListener('pjax:error', (e) => {
if (e.request.status === 404) {
pjax.loadUrl('/404.html')
}
})</script><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div><!-- hexo injector body_end start --><script data-pjax>function electric_clock_injector_config(){
var parent_div_git = document.getElementsByClassName('sticky_layout')[0];
var item_html = '<div class="card-widget card-clock"><div class="card-glass"><div class="card-background"><div class="card-content"><div id="hexo_electric_clock"><img id="card-clock-loading" src="https://cdn.jsdelivr.net/gh/Zfour/Butterfly-clock/clock/images/weather/loading.gif" style="height: 120px; width: 100%;" data-ll-status="loading" class="entered loading"></div></div></div></div></div>';
console.log('已挂载electric_clock')
// parent_div_git.innerHTML=item_html+parent_div_git.innerHTML // 无报错,但不影响使用(支持pjax跳转)
parent_div_git.insertAdjacentHTML("afterbegin",item_html) // 有报错,但不影响使用(支持pjax跳转)
}if( document.getElementsByClassName('sticky_layout')[0] && (location.pathname ==='all'|| 'all' ==='all')){
electric_clock_injector_config()
} </script><script src="https://pv.sohu.com/cityjson?ie=utf-8"></script><script data-pjax src="https://cdn.jsdelivr.net/gh/Zfour/hexo-electric-clock@1.0.6/clock.js"></script><!-- hexo injector body_end end --></body></html>