-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
90 lines (76 loc) · 24.3 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
<!DOCTYPE html><html><head><meta name="generator" content="Hexo 3.9.0"><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"><title>JiGW's Blog - null</title><meta name="description" content="春寒料峭 善自珍重"><meta name="keywords" content><meta name="author" content="Willis J"><meta name="copyright" content="Willis J"><meta name="format-detection" content="telephone=no"><link rel="shortcut icon" href="/img/favicon.ico"><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@latest/css/font-awesome.min.css"><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Titillium+Web"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.css"><meta http-equiv="x-dns-prefetch-control" content="on"><link rel="canonical" href="https://jigw24.github.io/"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:title" content="JiGW's Blog"><meta name="twitter:description" content="春寒料峭 善自珍重"><meta name="twitter:image" content="https://i.loli.net/2019/07/17/5d2f0b56d170e62593.jpeg"><meta property="og:type" content="website"><meta property="og:title" content="JiGW's Blog"><meta property="og:url" content="https://jigw24.github.io/"><meta property="og:site_name" content="JiGW's Blog"><meta property="og:description" content="春寒料峭 善自珍重"><meta property="og:image" content="https://i.loli.net/2019/07/17/5d2f0b56d170e62593.jpeg"><meta http-equiv="Cache-Control" content="no-transform"><meta http-equiv="Cache-Control" content="no-siteapp"><link rel="preload" href="https://i.loli.net/2019/07/23/5d35dec24edd327743.jpg" as="image"><script>var GLOBAL_CONFIG = {
root: '/',
algolia: undefined,
localSearch: {"path":"search.xml","languages":{"hits_empty":"We didn't find any results for the search: ${query}"}},
translate: {"defaultEncoding":1,"translateDelay":0,"cookieDomain":"https://jerryc.me/","msgToTraditionalChinese":"繁","msgToSimplifiedChinese":"简"},
highlight_copy: 'true',
copy: {
success: 'Copy successfully',
error: 'Copy error',
noSupport: 'The browser does not support'
},
bookmark: {
title: 'Bookmark',
message_prev: 'Press',
message_next: 'to bookmark this page'
},
runtime_unit: 'days'
}</script></head><body><nav class="full_page" id="nav" style="background-image: url(https://i.loli.net/2019/07/23/5d35dec24edd327743.jpg)"><div id="page-header"><span class="pull-left"> <a class="blog_title" id="site-name" href="/">JiGW's Blog</a></span><div class="open toggle-menu pull-right"><div class="menu-icon-first"></div><div class="menu-icon-second"></div><div class="menu-icon-third"></div></div><span class="pull-right menus"><div class="mobile_author_icon"><img class="lozad" data-src="https://i.loli.net/2019/07/17/5d2f0b56d170e62593.jpeg" onerror="onerror=null;src='/img/friend_404.gif'"><div class="mobile_author-info__description">春寒料峭 善自珍重</div></div><hr><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fa fa-home"></i><span> 首页</span></a><a class="site-page" href="/archives/"><i class="fa-fw fa fa-archive"></i><span> 时间轴</span></a><a class="site-page" href="/tags/"><i class="fa-fw fa fa-tags"></i><span> 标签</span></a><a class="site-page" href="/categories/"><i class="fa-fw fa fa-folder-open"></i><span> 分类</span></a><a class="site-page" href="/comments/"><i class="fa-fw fa fa-coffee"></i><span> 留言</span></a><a class="site-page" href="/link/"><i class="fa-fw fa fa-link"></i><span> 友链</span></a><a class="site-page" href="/about/"><i class="fa-fw fa fa-heart"></i><span> 关于</span></a><script>document.body.addEventListener('touchstart', function(){ });</script></div></span><span class="pull-right"><a class="site-page social-icon search"><i class="fa fa-search fa-fw"></i><span> Search</span></a></span></div><div id="site-info"><div id="site-title"><span class="blogtitle">JiGW's Blog</span></div><div id="site-sub-title"><span class="subtitle"></span></div><div id="site-social-icons"><a class="social-icon" href="https://github.com/JiGW24" target="_blank"><i class="fa fa-github"></i></a><a class="social-icon" href="/atom.xml" target="_blank"><i class="fa fa-rss"></i></a><a class="social-icon" href="https://weibo.com/jgwjustdoit" target="_blank"><i class="fa fa-weibo"></i></a></div></div><div class="scroll-down"><i class="fa fa-angle-down scroll-down-effects"></i></div></nav><div id="content-outer"><div class="layout_page" id="content-inner"><div class="recent-posts" id="recent-posts"><div class="recent-post-item article-container"><div class="post_cover is_left"><a href="/2019/07/17/分布式事务简单认识/"><img class="post_bg lozad" data-src="https://i.loli.net/2019/07/11/5d270ffba6dbe36324.jpg" onerror="onerror=null;src='/img/404.jpg'" title="分布式事务的简单认识"></a></div><div class="recent-post-info"> <a class="article-title" href="/2019/07/17/分布式事务简单认识/" title="分布式事务的简单认识">分布式事务的简单认识</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2019-07-17</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/技术栈/">技术栈</a></span><div class="content">问题的引出
如果一个事务调用了不同服务器上的操作,那么它就成为了一个分布式事务。
场景:在订单时创建时发生异常,但库存已经扣减,这样库存数会比实际情况少,造出数据不一致问题
分布式理论在实现分布式事务前,不如先了解下理论。
CAP定理CAP定理是由加州大学伯克利分校Eric Brewer教授提出来 ...</div><div class="more_setting"><a class="more more--border more--primary more--animated" href="/2019/07/17/分布式事务简单认识/#more" style="margin-top: 14px">Read more</a></div></div></div><div class="recent-post-item article-container"><div class="post_cover is_right"><a href="/2019/07/15/浅识高并发解决方向/"><img class="post_bg lozad" data-src="https://i.loli.net/2019/07/11/5d270ff7b92f320805.jpg" onerror="onerror=null;src='/img/404.jpg'" title="浅识高并发的解决方向"></a></div><div class="recent-post-info"> <a class="article-title" href="/2019/07/15/浅识高并发解决方向/" title="浅识高并发的解决方向">浅识高并发的解决方向</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2019-07-15</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/技术栈/">技术栈</a></span><div class="content">关于高并发系统的设计,应该从哪些方面考虑呢,对于从业不久的人来说可能都没想过,可以从这6个方面和面试官聊聊
系统拆分
缓存
MQ
分库分表
读写分离
Elasticsearch
系统拆分将一个系统拆分为多个子系统,用 dubbo 来搞。然后每个系统连一个数据库,这样本来就一个库,现在多个数据库, ...</div><div class="more_setting"><a class="more more--border more--primary more--animated" href="/2019/07/15/浅识高并发解决方向/#more" style="margin-top: 14px">Read more</a></div></div></div><div class="recent-post-item article-container"><div class="post_cover is_left"><a href="/2019/07/13/RabbitMQ消息丢失问题/"><img class="post_bg lozad" data-src="https://i.loli.net/2019/07/11/5d270ffba6dbe36324.jpg" onerror="onerror=null;src='/img/404.jpg'" title="消息队列(RabbitMQ篇)中的数据丢失问题与解决"></a></div><div class="recent-post-info"> <a class="article-title" href="/2019/07/13/RabbitMQ消息丢失问题/" title="消息队列(RabbitMQ篇)中的数据丢失问题与解决">消息队列(RabbitMQ篇)中的数据丢失问题与解决</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2019-07-13</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/技术栈/">技术栈</a></span><div class="content">既然是传递消息,那么消息传输的可靠性十分重要,出现了问题又该如何解决呢
出现此问题的地方存在消息发生产者,中间件和消费者,因此这条传输路径即表明了问题可能出在哪
针对RabbitMQ生产者弄丢数据
方案1
使用Rabbit的事务功能,就是在生产者发送数据前开启Rabbit事务channel.txS ...</div><div class="more_setting"><a class="more more--border more--primary more--animated" href="/2019/07/13/RabbitMQ消息丢失问题/#more" style="margin-top: 14px">Read more</a></div></div></div><div class="recent-post-item article-container"><div class="post_cover is_right"><a href="/2019/07/10/Redis实现消息队列/"><img class="post_bg lozad" data-src="https://i.loli.net/2019/07/11/5d270ffc69d8a18039.jpg" onerror="onerror=null;src='/img/404.jpg'" title="Redis实现消息队列"></a></div><div class="recent-post-info"> <a class="article-title" href="/2019/07/10/Redis实现消息队列/" title="Redis实现消息队列">Redis实现消息队列</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2019-07-10</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/技术栈/">技术栈</a></span><div class="content">既然Redis可以重当消息中间件,那除了RabbitMQ等使用,试着学习下Redis实现消息队列。
订阅与发布先来看一下redis发布和订阅(pub/sub),它是一种消息通信模式。即发送者(pub)发送消息,订阅者(sub)接收消息。Redis 客户端可以订阅任意数量的频道。
这里可以参考官网,放 ...</div><div class="more_setting"><a class="more more--border more--primary more--animated" href="/2019/07/10/Redis实现消息队列/#more" style="margin-top: 14px">Read more</a></div></div></div><div class="recent-post-item article-container"><div class="post_cover is_left"><a href="/2019/07/04/消息和RabbitMQ/"><img class="post_bg lozad" data-src="https://i.loli.net/2019/07/14/5d2b07f58667557623.jpg" onerror="onerror=null;src='/img/404.jpg'" title="消息中间件和RabbitMQ相关备忘"></a></div><div class="recent-post-info"> <a class="article-title" href="/2019/07/04/消息和RabbitMQ/" title="消息中间件和RabbitMQ相关备忘">消息中间件和RabbitMQ相关备忘</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2019-07-04</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/技术栈/">技术栈</a></span><div class="content">消息中间件简介消息中间件(消息队列)是分布式系统中重要的组件,主要解决应用耦合,异步消息,流量削锋等问题实现高性能,高可用,可伸缩和最终一致性[架构] 使用较多的消息队列有ActiveMQ,RabbitMQ,ZeroMQ,Kafka,MetaMQ,RocketMQ
关于消息中间件的各种面试题:h ...</div><div class="more_setting"><a class="more more--border more--primary more--animated" href="/2019/07/04/消息和RabbitMQ/#more" style="margin-top: 14px">Read more</a></div></div></div><div class="recent-post-item article-container"><div class="post_cover is_right"><a href="/2019/07/04/Elasticsearch学习备忘/"><img class="post_bg lozad" data-src="https://i.loli.net/2019/07/11/5d270ffba6dbe36324.jpg" onerror="onerror=null;src='/img/404.jpg'" title="Elasticsearch学习备忘"></a></div><div class="recent-post-info"> <a class="article-title" href="/2019/07/04/Elasticsearch学习备忘/" title="Elasticsearch学习备忘">Elasticsearch学习备忘</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2019-07-04</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/技术栈/">技术栈</a></span><div class="content">本文由zhoulu整理,感谢
Elasticsearch学习记录
1、Elasticsearch的特点
可以分布式集群,对海量数据进行近实时的处理;
对用户而言,开箱即用,非常简单。如果数据量不大,操作不会太复杂;
具有关系型数据库没有的功能,比如全文检索,同义词处理,相关度排名,复杂数据分析,海 ...</div><div class="more_setting"><a class="more more--border more--primary more--animated" href="/2019/07/04/Elasticsearch学习备忘/#more" style="margin-top: 14px">Read more</a></div></div></div><nav id="pagination"><div class="pagination"><span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><span class="space">…</span><a class="page-number" href="/page/7/">7</a><a class="extend next" rel="next" href="/page/2/"><i class="fa fa-chevron-right"></i></a></div></nav></div><div class="aside_content" id="aside_content"><div class="card_widget card-author"><div class="card-content"><div class="post_data"><div class="data-item text-center"><img class="lozad" data-src="https://i.loli.net/2019/07/17/5d2f0b56d170e62593.jpeg" onerror="onerror=null;src='/img/friend_404.gif'"><p class="author-info__name text-center">Willis J</p><p class="author-info__description text-center">春寒料峭 善自珍重</p></div></div><div class="post_data data_config"><div class="data-item text-center"><div class="data_link"><a href="/archives/"><p class="headline">Articles</p><p class="length_num">39</p></a></div></div><div class="data-item text-center"> <div class="data_link"><a href="/tags/"><p class="headline">Tags</p><p class="length_num">42</p></a></div></div><div class="data-item text-center"> <div class="data_link"><a href="/categories/"><p class="headline">Categories</p><p class="length_num">7</p></a></div></div></div><div class="post_data text-center"><a class="data-item bookmark bookmarke--primary bookmark--animated" id="bookmark-it" href="javascript:;" title="Add to bookmark">Add to bookmark</a></div><div class="post_data data_config"><div id="aside-social-icons"> <a class="social-icon data-item" href="https://github.com/JiGW24" target="_blank"><i class="fa fa-github"></i></a><a class="social-icon data-item" href="/atom.xml" target="_blank"><i class="fa fa-rss"></i></a><a class="social-icon data-item" href="https://weibo.com/jgwjustdoit" target="_blank"><i class="fa fa-weibo"></i></a></div></div></div></div><div class="card_widget card-announcement"><div class="card-content"><div class="item_headline"><i class="fa fa-bullhorn card-announcement-animation" aria-hidden="true"></i><span>Announcement</span></div><div class="announcement_content">原博客已迁移此处,敬请期待后续内容!</div></div></div><div class="card_widget card-categories"><div class="card-content"><div class="item_headline"><i class="fa fa-folder-open" aria-hidden="true"></i><span>Categories</span></div><ul class="aside_category_item"> <li class="aside_category_list"><a class="aside_category_list_link" href="/categories/DB/"><span class="aside_category_list_name">DB</span><span class="aside_category_list_length">6</span></a></li><li class="aside_category_list"><a class="aside_category_list_link" href="/categories/JavaSE/"><span class="aside_category_list_name">JavaSE</span><span class="aside_category_list_length">4</span></a></li><li class="aside_category_list"><a class="aside_category_list_link" href="/categories/JavaWeb/"><span class="aside_category_list_name">JavaWeb</span><span class="aside_category_list_length">6</span></a></li><li class="aside_category_list"><a class="aside_category_list_link" href="/categories/技术栈/"><span class="aside_category_list_name">技术栈</span><span class="aside_category_list_length">12</span></a></li><li class="aside_category_list"><a class="aside_category_list_link" href="/categories/框架/"><span class="aside_category_list_name">框架</span><span class="aside_category_list_length">7</span></a></li><li class="aside_category_list"><a class="aside_category_list_link" href="/categories/设计模式和数据结构/"><span class="aside_category_list_name">设计模式和数据结构</span><span class="aside_category_list_length">2</span></a></li><li class="aside_category_list"><a class="aside_category_list_link" href="/categories/逆旅/"><span class="aside_category_list_name">逆旅</span><span class="aside_category_list_length">2</span></a></li></ul></div></div><div class="card_widget card-tags"><div class="card-content"><div class="item_headline"><i class="fa fa-tags" aria-hidden="true"></i><span>Tags</span></div><div class="card-tag-cloud"><a href="/tags/DOM4J/" style="font-size: 16px; color: #999">DOM4J</a> <a href="/tags/Git/" style="font-size: 16px; color: #999">Git</a> <a href="/tags/Jsoup/" style="font-size: 16px; color: #999">Jsoup</a> <a href="/tags/MQ/" style="font-size: 20.8px; color: #3d3d3d">MQ</a> <a href="/tags/MySQL/" style="font-size: 22.4px; color: #1f1f1f">MySQL</a> <a href="/tags/Mybatis/" style="font-size: 16px; color: #999">Mybatis</a> <a href="/tags/Oracle/" style="font-size: 16px; color: #999">Oracle</a> <a href="/tags/RabbitMQ/" style="font-size: 17.6px; color: #7a7a7a">RabbitMQ</a> <a href="/tags/Redis/" style="font-size: 20.8px; color: #3d3d3d">Redis</a> <a href="/tags/SOA/" style="font-size: 16px; color: #999">SOA</a> <a href="/tags/SQL/" style="font-size: 24px; color: #000">SQL</a> <a href="/tags/Serializable/" style="font-size: 16px; color: #999">Serializable</a> <a href="/tags/ServletContext/" style="font-size: 16px; color: #999">ServletContext</a> <a href="/tags/Spring/" style="font-size: 24px; color: #000">Spring</a> <a href="/tags/SpringDataRedis/" style="font-size: 16px; color: #999">SpringDataRedis</a> <a href="/tags/SpringMVC/" style="font-size: 16px; color: #999">SpringMVC</a> <a href="/tags/String/" style="font-size: 16px; color: #999">String</a> <a href="/tags/Tomcat/" style="font-size: 16px; color: #999">Tomcat</a> <a href="/tags/annotation/" style="font-size: 17.6px; color: #7a7a7a">annotation</a> <a href="/tags/blog/" style="font-size: 19.2px; color: #5c5c5c">blog</a> <a href="/tags/designPattern/" style="font-size: 16px; color: #999">designPattern</a> <a href="/tags/druid/" style="font-size: 16px; color: #999">druid</a> <a href="/tags/dubbo/" style="font-size: 16px; color: #999">dubbo</a> <a href="/tags/eclipse/" style="font-size: 16px; color: #999">eclipse</a> <a href="/tags/elasticsearch/" style="font-size: 16px; color: #999">elasticsearch</a> <a href="/tags/github/" style="font-size: 16px; color: #999">github</a> <a href="/tags/hexo/" style="font-size: 17.6px; color: #7a7a7a">hexo</a> <a href="/tags/index/" style="font-size: 16px; color: #999">index</a> <a href="/tags/interview/" style="font-size: 24px; color: #000">interview</a> <a href="/tags/java/" style="font-size: 17.6px; color: #7a7a7a">java</a> <a href="/tags/junit/" style="font-size: 16px; color: #999">junit</a> <a href="/tags/maven/" style="font-size: 17.6px; color: #7a7a7a">maven</a> <a href="/tags/mood/" style="font-size: 17.6px; color: #7a7a7a">mood</a> <a href="/tags/redis/" style="font-size: 16px; color: #999">redis</a> <a href="/tags/request/" style="font-size: 16px; color: #999">request</a> <a href="/tags/servlet/" style="font-size: 16px; color: #999">servlet</a> <a href="/tags/session/" style="font-size: 16px; color: #999">session</a> <a href="/tags/sort/" style="font-size: 16px; color: #999">sort</a> <a href="/tags/transaction/" style="font-size: 16px; color: #999">transaction</a> <a href="/tags/xml/" style="font-size: 19.2px; color: #5c5c5c">xml</a> <a href="/tags/xpath/" style="font-size: 16px; color: #999">xpath</a> <a href="/tags/zookeeper/" style="font-size: 16px; color: #999">zookeeper</a></div></div></div><div class="card_widget card-webinfo"><div class="card-content"><div class="item_headline"><i class="fa fa-line-chart" aria-hidden="true"></i><span>Info</span></div><div class="webinfo"><div class="webinfo_item"><div class="webinfo_article_name">Article :</div><div class="webinfo_article_count">39</div></div><div class="webinfo_item"><div class="webinfo_runtime_name">Run time :</div><div class="webinfo_runtime_count" id="webinfo_runtime_count"></div><script id="runtionshow" src="/js/runtimeshow.js" start_date="12/25/2017 00:00:00"> </script></div><div class="webinfo_item"> <div class="webinfo_site_uv_name">UV :</div><div class="webinfo_site_uv_count" id="busuanzi_value_site_uv"></div></div><div class="webinfo_item"><div class="webinfo_site_name">PV :</div><div class="webinfo_site_pv_count" id="busuanzi_value_site_pv"></div></div></div></div></div></div></div></div><footer><div class="layout" id="footer"><div class="copyright">©2017 - 2019 By Willis J</div><div class="framework-info"><span>Driven </span><a href="http://hexo.io"><span>Hexo</span></a><span class="footer-separator">|</span><span>Theme </span><a href="https://github.com/jerryc127/hexo-theme-butterfly"><span>Butterfly</span></a></div><div class="footer_custom_text">欢迎您呀</div></div></footer><i class="fa fa-arrow-up" id="go-up" aria-hidden="true"></i><section class="rightside" id="rightside"><i class="fa fa-plus" id="font_plus" title="Increase font size"></i><i class="fa fa-minus" id="font_minus" title="Decrease font size"></i><a class="translate_chn_to_cht" id="translateLink" href="javascript:translatePage();" title="Traditional Chinese and Simplified Chinese Conversion">簡</a><i class="fa fa-moon-o nightshift" id="nightshift" title="Dark Mode"></i></section><script src="https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.js"></script><script src="https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script><script src="https://cdn.jsdelivr.net/npm/lozad/dist/lozad.min.js"></script><script src="/js/utils.js"></script><script src="/js/main.js"></script><script async src="/js/search/local-search.js"></script><script src="/js/nightshift.js"></script><script id="ribbon" src="https://cdn.jsdelivr.net/gh/jerryc127/CDN@latest/js/piao.js"></script><script src="/js/tw_cn.js"></script><script>translateInitilization()
</script><script src="https://cdn.jsdelivr.net/npm/[email protected]"> </script><script>var typed = new Typed(".subtitle", {
strings: ['I Love Java','System.out.println("Fuck Java");'],
startDelay: 300,
typeSpeed: 100,
loop: true,
backSpeed: 50
});
</script><script>//首頁fullpage
function alignContent() {
for (var n = $(window).height(), e = document.querySelectorAll(".full_page"), i = 0; i < e.length; i++)
e[i].style.height = n + "px";
$("#site-info").each(function () {
var x = $(this).height();
$(this).css("top", (n-x)/2)
})
}
function recent_post_padding() {
$(".recent-post-info").each(function () {
var k = $(".recent-post-item").height();
var e = $(this).height();
$(this).css({"padding-top": (k-e)/2 , "padding-bottom": (k-e)/2 })
})
}
alignContent();
//recent-post-item垂直置中
if ($(window).width() > 768) {
recent_post_padding();
}
$(window).bind("resize", function () {
alignContent()
if ($(window).width() > 768) {
recent_post_padding();
}
})
</script><script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script><script src="https://cdn.jsdelivr.net/npm/[email protected]/instantpage.min.js" type="module"></script><div class="search-dialog" id="local-search"><div class="search-dialog__title" id="local-search-title">Local search</div><div id="local-input-panel"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="Search for Posts"></div></div></div><hr><div id="local-search-results"><div id="local-hits"></div><div id="local-stats"><div class="local-search-stats__hr" id="hr"><span>Powered by</span> <a href="https://github.com/wzpan/hexo-generator-search" style="color:#49B1F5;">hexo-generator-search</a></div></div></div><span class="search-close-button"><i class="fa fa-times"></i></span></div><div class="search-mask"></div></body></html>