代码拉取完成,页面将自动刷新
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="keywords" content="欢迎来到Javan的博客!">
<meta name="description" content="Live your life with passion! With some drive!">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit|ie-stand|ie-comp">
<meta name="mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<!-- Global site tag (gtag.js) - Google Analytics -->
<title>欢迎来到Javan的博客!</title>
<link rel="icon" type="image/png" href="/javanblog/favicon.png">
<link rel="stylesheet" type="text/css" href="/javanblog/libs/awesome/css/all.css">
<link rel="stylesheet" type="text/css" href="/javanblog/libs/materialize/materialize.min.css">
<link rel="stylesheet" type="text/css" href="/javanblog/libs/aos/aos.css">
<link rel="stylesheet" type="text/css" href="/javanblog/libs/animate/animate.min.css">
<link rel="stylesheet" type="text/css" href="/javanblog/libs/lightGallery/css/lightgallery.min.css">
<link rel="stylesheet" type="text/css" href="/javanblog/css/matery.css">
<link rel="stylesheet" type="text/css" href="/javanblog/css/my.css">
<script src="/javanblog/libs/jquery/jquery.min.js"></script>
<meta name="generator" content="Hexo 5.4.0"><link rel="alternate" href="/javanblog/atom.xml" title="欢迎来到Javan的博客!" type="application/atom+xml">
<style>.github-emoji { position: relative; display: inline-block; width: 1.2em; min-height: 1.2em; overflow: hidden; vertical-align: top; color: transparent; } .github-emoji > span { position: relative; z-index: 10; } .github-emoji img, .github-emoji .fancybox { margin: 0 !important; padding: 0 !important; border: none !important; outline: none !important; text-decoration: none !important; user-select: none !important; cursor: auto !important; } .github-emoji img { height: 1.2em !important; width: 1.2em !important; position: absolute !important; left: 50% !important; top: 50% !important; transform: translate(-50%, -50%) !important; user-select: none !important; cursor: auto !important; } .github-emoji-fallback { color: inherit; } .github-emoji-fallback img { opacity: 0 !important; }</style>
</head>
<body>
<header class="navbar-fixed">
<nav id="headNav" class="bg-color nav-transparent">
<div id="navContainer" class="nav-wrapper container">
<div class="brand-logo">
<a href="/javanblog/" class="waves-effect waves-light">
<img src="/javanblog/medias/logo.png" class="logo-img" alt="LOGO">
<span class="logo-span">欢迎来到Javan的博客!</span>
</a>
</div>
<a href="#" data-target="mobile-nav" class="sidenav-trigger button-collapse"><i class="fas fa-bars"></i></a>
<ul class="right nav-menu">
<li class="hide-on-med-and-down nav-item">
<a href="/javanblog/" class="waves-effect waves-light">
<i class="fas fa-home" style="zoom: 0.6;"></i>
<span>首页</span>
</a>
</li>
<li class="hide-on-med-and-down nav-item">
<a href="/javanblog/tags" class="waves-effect waves-light">
<i class="fas fa-tags" style="zoom: 0.6;"></i>
<span>标签</span>
</a>
</li>
<li class="hide-on-med-and-down nav-item">
<a href="/javanblog/categories" class="waves-effect waves-light">
<i class="fas fa-bookmark" style="zoom: 0.6;"></i>
<span>分类</span>
</a>
</li>
<li class="hide-on-med-and-down nav-item">
<a href="/javanblog/archives" class="waves-effect waves-light">
<i class="fas fa-archive" style="zoom: 0.6;"></i>
<span>归档</span>
</a>
</li>
<li class="hide-on-med-and-down nav-item">
<a href="/javanblog/about" class="waves-effect waves-light">
<i class="fas fa-user-circle" style="zoom: 0.6;"></i>
<span>关于</span>
</a>
</li>
<li class="hide-on-med-and-down nav-item">
<a href="/javanblog/contact" class="waves-effect waves-light">
<i class="fas fa-comments" style="zoom: 0.6;"></i>
<span>留言板</span>
</a>
</li>
<li class="hide-on-med-and-down nav-item">
<a href="/javanblog/friends" class="waves-effect waves-light">
<i class="fas fa-address-book" style="zoom: 0.6;"></i>
<span>友情链接</span>
</a>
</li>
<li class="hide-on-med-and-down nav-item">
<a href="" class="waves-effect waves-light">
<i class="fas fa-list" style="zoom: 0.6;"></i>
<span>Medias</span>
<i class="fas fa-chevron-down" aria-hidden="true" style="zoom: 0.6;"></i>
</a>
<ul class="sub-nav menus_item_child ">
<li>
<a href="/javanblog/musics">
<i class="fas fa-music" style="margin-top: -20px; zoom: 0.6;"></i>
<span>Musics</span>
</a>
</li>
<li>
<a href="/javanblog/movies">
<i class="fas fa-film" style="margin-top: -20px; zoom: 0.6;"></i>
<span>Movies</span>
</a>
</li>
<li>
<a href="/javanblog/books">
<i class="fas fa-book" style="margin-top: -20px; zoom: 0.6;"></i>
<span>Books</span>
</a>
</li>
<li>
<a href="/javanblog/galleries">
<i class="fas fa-image" style="margin-top: -20px; zoom: 0.6;"></i>
<span>Galleries</span>
</a>
</li>
</ul>
</li>
<li>
<a href="#searchModal" class="modal-trigger waves-effect waves-light">
<i id="searchIcon" class="fas fa-search" title="搜索" style="zoom: 0.85;"></i>
</a>
</li>
</ul>
<div id="mobile-nav" class="side-nav sidenav">
<div class="mobile-head bg-color">
<img src="/javanblog/medias/logo.png" class="logo-img circle responsive-img">
<div class="logo-name">欢迎来到Javan的博客!</div>
<div class="logo-desc">
Live your life with passion! With some drive!
</div>
</div>
<ul class="menu-list mobile-menu-list">
<li class="m-nav-item">
<a href="/javanblog/" class="waves-effect waves-light">
<i class="fa-fw fas fa-home"></i>
首页
</a>
</li>
<li class="m-nav-item">
<a href="/javanblog/tags" class="waves-effect waves-light">
<i class="fa-fw fas fa-tags"></i>
标签
</a>
</li>
<li class="m-nav-item">
<a href="/javanblog/categories" class="waves-effect waves-light">
<i class="fa-fw fas fa-bookmark"></i>
分类
</a>
</li>
<li class="m-nav-item">
<a href="/javanblog/archives" class="waves-effect waves-light">
<i class="fa-fw fas fa-archive"></i>
归档
</a>
</li>
<li class="m-nav-item">
<a href="/javanblog/about" class="waves-effect waves-light">
<i class="fa-fw fas fa-user-circle"></i>
关于
</a>
</li>
<li class="m-nav-item">
<a href="/javanblog/contact" class="waves-effect waves-light">
<i class="fa-fw fas fa-comments"></i>
留言板
</a>
</li>
<li class="m-nav-item">
<a href="/javanblog/friends" class="waves-effect waves-light">
<i class="fa-fw fas fa-address-book"></i>
友情链接
</a>
</li>
<li class="m-nav-item">
<a href="javascript:;">
<i class="fa-fw fas fa-list"></i>
Medias
<span class="m-icon"><i class="fas fa-chevron-right"></i></span>
</a>
<ul style="background: ;" >
<li>
<a href="/javanblog/musics " style="margin-left:75px">
<i class="fa fas fa-music" style="position: absolute;left:50px" ></i>
<span>Musics</span>
</a>
</li>
<li>
<a href="/javanblog/movies " style="margin-left:75px">
<i class="fa fas fa-film" style="position: absolute;left:50px" ></i>
<span>Movies</span>
</a>
</li>
<li>
<a href="/javanblog/books " style="margin-left:75px">
<i class="fa fas fa-book" style="position: absolute;left:50px" ></i>
<span>Books</span>
</a>
</li>
<li>
<a href="/javanblog/galleries " style="margin-left:75px">
<i class="fa fas fa-image" style="position: absolute;left:50px" ></i>
<span>Galleries</span>
</a>
</li>
</ul>
</li>
<li><div class="divider"></div></li>
<li>
<a href="https://github.com/blinkfox/hexo-theme-matery" class="waves-effect waves-light" target="_blank">
<i class="fab fa-github-square fa-fw"></i>Fork Me
</a>
</li>
</ul>
</div>
</div>
<style>
.nav-transparent .github-corner {
display: none !important;
}
.github-corner {
position: absolute;
z-index: 10;
top: 0;
right: 0;
border: 0;
transform: scale(1.1);
}
.github-corner svg {
color: #0f9d58;
fill: #fff;
height: 64px;
width: 64px;
}
.github-corner:hover .octo-arm {
animation: a 0.56s ease-in-out;
}
.github-corner .octo-arm {
animation: none;
}
@keyframes a {
0%,
to {
transform: rotate(0);
}
20%,
60% {
transform: rotate(-25deg);
}
40%,
80% {
transform: rotate(10deg);
}
}
</style>
<a href="https://github.com/blinkfox/hexo-theme-matery" class="github-corner tooltipped hide-on-med-and-down" target="_blank"
data-tooltip="Fork Me" data-position="left" data-delay="50">
<svg viewBox="0 0 250 250" aria-hidden="true">
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
<path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2"
fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path>
<path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z"
fill="currentColor" class="octo-body"></path>
</svg>
</a>
</nav>
</header>
<style>
.carousel-control {
width: 45px;
height: 45px;
line-height: 55px;
border-radius: 45px;
background: transparent;
cursor: pointer;
z-index: 100;
}
#prev-cover {
position: absolute;
top: 48%;
left: 8px;
}
#next-cover {
position: absolute;
top: 48%;
right: 8px;;
}
#prev-cover i {
margin-right: 3px;
}
#next-cover i {
margin-left: 3px;
}
.carousel-control:hover {
background-color: rgba(0, 0, 0, .4);
}
.carousel-control i {
color: #fff;
font-size: 2.4rem;
}
</style>
<div class="carousel carousel-slider center index-cover" data-indicators="true" style="margin-top: -64px;">
<div class="carousel-item red white-text bg-cover about-cover">
<div class="container">
<div class="row">
<div class="col s10 offset-s1 m8 offset-m2 l8 offset-l2">
<div class="brand">
<div class="title center-align">
心怀不惧,方能勇闯天下
</div>
<div class="description center-align">
<span id="subtitle"></span>
<script src="https://cdn.jsdelivr.net/npm/typed.js@2.0.11"></script>
<script>
var typed = new Typed("#subtitle", {
strings: [
"从来没有真正的绝境, 只有心灵的迷途",
"Never really desperate, only the lost of the soul",
],
startDelay: 300,
typeSpeed: 100,
loop: true,
backSpeed: 50,
showCursor: true
});
</script>
</div>
</div>
</div>
</div>
<script>
// 每天切换 banner 图. Switch banner image every day.
var bannerUrl = "/javanblog/medias/banner/" + new Date().getDay() + '.jpg';
$('.bg-cover').css('background-image', 'url(' + bannerUrl + ')');
</script>
<div class="cover-btns">
<a href="#indexCard" class="waves-effect waves-light btn">
<i class="fa fa-angle-double-down"></i>开始阅读
</a>
<a href="https://github.com/blinkfox/hexo-theme-matery" class="waves-effect waves-light btn" target="_blank">
<i class="fab fa-github-alt"></i>Github
</a>
</div>
<div class="cover-social-link">
<a href="https://github.com/blinkfox" class="tooltipped" target="_blank" data-tooltip="访问我的GitHub" data-position="top" data-delay="50">
<i class="fab fa-github"></i>
</a>
<a href="mailto:1181062873@qq.com" class="tooltipped" target="_blank" data-tooltip="邮件联系我" data-position="top" data-delay="50">
<i class="fas fa-envelope-open"></i>
</a>
<a href="tencent://AddContact/?fromId=50&fromSubId=1&subcmd=all&uin=1181062873" class="tooltipped" target="_blank" data-tooltip="QQ联系我: 1181062873" data-position="top" data-delay="50">
<i class="fab fa-qq"></i>
</a>
<a href="/javanblog/atom.xml" class="tooltipped" target="_blank" data-tooltip="RSS 订阅" data-position="top" data-delay="50">
<i class="fas fa-rss"></i>
</a>
</div>
</div>
</div>
</div>
<script>
$(function () {
let coverSlider = $('.carousel');
//用户触摸轮播自动 restartPlay 是否生效
let initUserPressedOrDraggedActive = false
//用户触摸轮播自动 restartPlay
function initUserPressedOrDragged(instance) {
setInterval(() => {
if (instance.pressed || instance.dragged) {
// console.log('initUserPressedOrDragged: ',instance.pressed,instance.dragged)
restartPlay()
}
}, 1000)
}
coverSlider.carousel({
duration: Number('120'),
fullWidth: true,
indicators: 'true' === 'true',
onCycleTo() {
if (!initUserPressedOrDraggedActive) {
// console.log('initUserPressedOrDraggedActive')
initUserPressedOrDragged(this)
initUserPressedOrDraggedActive = true
}
},
})
let carouselIntervalId;
// Loop to call the next cover article picture.
let autoCarousel = function () {
carouselIntervalId = setInterval(function () {
coverSlider.carousel('next');
}, 5000);
};
autoCarousel();
function restartPlay() {
clearInterval(carouselIntervalId);
autoCarousel();
};
// prev and next cover post.
$('#prev-cover').click(function () {
coverSlider.carousel('prev');
restartPlay();
});
$('#next-cover').click(function () {
coverSlider.carousel('next');
restartPlay();
});
});
</script>
<main class="content">
<div id="indexCard" class="index-card">
<div class="container ">
<div class="card">
<div class="card-content">
<div class="dream">
<div class="title center-align">
<i class="far fa-lightbulb"></i> 我的梦想
</div>
<div class="row">
<div class="col l8 offset-l2 m10 offset-m1 s10 offset-s1 center-align text">
不是每个人都应该像我这样去建造一座水晶大教堂,但是每个人都应该拥有自己的梦想,设计自己的梦想,追求自己的梦想,实现自己的梦想。梦想是生命的灵魂,是心灵的灯塔,是引导人走向成功的信仰。有了崇高的梦想,只要矢志不渝地追求,梦想就会成为现实,奋斗就会变成壮举,生命就会创造奇迹。——罗伯·舒乐
</div>
</div>
</div>
<div id="recommend-sections" class="recommend">
</div>
</div>
</div>
</div>
</div>
<!-- 所有文章卡片 -->
<article id="articles" class="container articles">
<div class="row article-row">
<div class="article col s12 m6 l4" data-aos="zoom-in">
<div class="card">
<a href="/javanblog/2021/04/25/SpringMVC/">
<div class="card-image">
<img src="/javanblog/medias/featureimages/0.jpg" class="responsive-img" alt="">
<span class="card-title"></span>
</div>
</a>
<div class="card-content article-content">
<div class="summary block-with-text">
Spring MVC1 什么是Spirng MVC
概述
Spirng MVC是Spring Framework的一部分,是基于java实现MVC的轻量级Web框架。
官方文档:https://docs.spring.io/spring
</div>
<div class="publish-info">
<span class="publish-date">
<i class="far fa-clock fa-fw icon-date"></i>2021-04-25
</span>
<span class="publish-author">
<i class="fas fa-user fa-fw"></i>
Javan
</span>
</div>
</div>
</div>
</div>
<div class="article col s12 m6 l4" data-aos="zoom-in">
<div class="card">
<a href="/javanblog/2021/04/25/Mybatis/">
<div class="card-image">
<img src="/javanblog/medias/featureimages/0.jpg" class="responsive-img" alt="">
<span class="card-title"></span>
</div>
</a>
<div class="card-content article-content">
<div class="summary block-with-text">
MyBatis1 MyBatis简介
环境说明
jdk 1.8
Mysql 5.7.29
maven 3.6.1
IDEA
什么是MyBatis
MyBatis是一个基于Java的持久层框架
MyBatis 免除了几乎所有的 J
</div>
<div class="publish-info">
<span class="publish-date">
<i class="far fa-clock fa-fw icon-date"></i>2021-04-25
</span>
<span class="publish-author">
<i class="fas fa-user fa-fw"></i>
Javan
</span>
</div>
</div>
</div>
</div>
<div class="article col s12 m6 l4" data-aos="zoom-in">
<div class="card">
<a href="/javanblog/2021/04/25/%E7%AE%97%E6%B3%95%E6%8A%80%E5%B7%A71/">
<div class="card-image">
<img src="/javanblog/medias/featureimages/5.jpg" class="responsive-img" alt="算法技巧">
<span class="card-title">算法技巧</span>
</div>
</a>
<div class="card-content article-content">
<div class="summary block-with-text">
双指针法
这是一种使用两个指针互相配合来存储节点以便于运算的技巧
适用于数组、链表等线性结构,常用思路有碰撞指针、滑动窗口、快慢指针。
对撞指针
leetcode第一题两数之和
1234567891011121314151617181
</div>
<div class="publish-info">
<span class="publish-date">
<i class="far fa-clock fa-fw icon-date"></i>2021-04-25
</span>
<span class="publish-author">
<i class="fas fa-user fa-fw"></i>
Javan
</span>
</div>
</div>
</div>
</div>
<div class="article col s12 m6 l4" data-aos="zoom-in">
<div class="card">
<a href="/javanblog/2021/04/24/Leetcode%20%E5%88%B7%E9%A2%98%E8%AE%B0%E5%BD%95/">
<div class="card-image">
<img src="/javanblog/medias/featureimages/14.jpg" class="responsive-img" alt="Leetcode刷题笔记">
<span class="card-title">Leetcode刷题笔记</span>
</div>
</a>
<div class="card-content article-content">
<div class="summary block-with-text">
Leetcode 刷题记录1.两数之和(2021.4.3)给定一个整数数组 nums 和一个整数目标值 target,请你在该数组中找出 和为目标值 的那 两个 整数,并返回它们的数组下标。
你可以假设每种输入只会对应一个答案。但是,数组中
</div>
<div class="publish-info">
<span class="publish-date">
<i class="far fa-clock fa-fw icon-date"></i>2021-04-24
</span>
<span class="publish-author">
<i class="fas fa-user fa-fw"></i>
Javan
</span>
</div>
</div>
</div>
</div>
<div class="article col s12 m6 l4" data-aos="zoom-in">
<div class="card">
<a href="/javanblog/2021/04/23/Git%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/">
<div class="card-image">
<img src="/javanblog/medias/featureimages/6.jpg" class="responsive-img" alt="Git初级学习笔记">
<span class="card-title">Git初级学习笔记</span>
</div>
</a>
<div class="card-content article-content">
<div class="summary block-with-text">
基础知识什么是版本控制版本控制(Revision control)是一种在开发的过程中用于管理我们对文件、目录或工程等内容的修改历史,方便查看更改历史记录,备份以便恢复以前的版本的软件工程技术。
实现跨区域多人协同开发
追踪和记载一个或者
</div>
<div class="publish-info">
<span class="publish-date">
<i class="far fa-clock fa-fw icon-date"></i>2021-04-23
</span>
<span class="publish-author">
<i class="fas fa-user fa-fw"></i>
Javan
</span>
</div>
</div>
</div>
</div>
<div class="article col s12 m6 l4" data-aos="zoom-in">
<div class="card">
<a href="/javanblog/2021/04/23/JavaWeb%E7%9F%A5%E8%AF%86%E7%82%B9%E6%80%BB%E7%BB%93/">
<div class="card-image">
<img src="/javanblog/medias/featureimages/6.jpg" class="responsive-img" alt="JavaWeb笔记">
<span class="card-title">JavaWeb笔记</span>
</div>
</a>
<div class="card-content article-content">
<div class="summary block-with-text">
JavaWeb知识点总结HTML、CSS、JS、JQuery、XML、Tomcat、Servlet程序、Filter过滤器、Listener监听器、jsp页面、EL表达式、JSTL标签库、Cookie技术、Session会话、JSON使用、
</div>
<div class="publish-info">
<span class="publish-date">
<i class="far fa-clock fa-fw icon-date"></i>2021-04-23
</span>
<span class="publish-author">
<i class="fas fa-user fa-fw"></i>
Javan
</span>
</div>
</div>
</div>
</div>
<div class="article col s12 m6 l4" data-aos="zoom-in">
<div class="card">
<a href="/javanblog/2021/04/23/hello-world/">
<div class="card-image">
<img src="/javanblog/medias/featureimages/12.jpg" class="responsive-img" alt="Hello World">
<span class="card-title">Hello World</span>
</div>
</a>
<div class="card-content article-content">
<div class="summary block-with-text">
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hex
</div>
<div class="publish-info">
<span class="publish-date">
<i class="far fa-clock fa-fw icon-date"></i>2021-04-23
</span>
<span class="publish-author">
<i class="fas fa-user fa-fw"></i>
Javan
</span>
</div>
</div>
</div>
</div>
</div>
</article>
</main>
<footer class="page-footer bg-color">
<link rel="stylesheet" href="/javanblog/libs/aplayer/APlayer.min.css">
<style>
.aplayer .aplayer-lrc p {
display: none;
font-size: 12px;
font-weight: 700;
line-height: 16px !important;
}
.aplayer .aplayer-lrc p.aplayer-lrc-current {
display: none;
font-size: 15px;
color: #42b983;
}
.aplayer.aplayer-fixed.aplayer-narrow .aplayer-body {
left: -66px !important;
}
.aplayer.aplayer-fixed.aplayer-narrow .aplayer-body:hover {
left: 0px !important;
}
</style>
<div class="">
<div class="row">
<meting-js class="col l8 offset-l2 m10 offset-m1 s12"
server="netease"
type="playlist"
id="503838841"
fixed='true'
autoplay='false'
theme='#42b983'
loop='all'
order='random'
preload='auto'
volume='0.7'
list-folded='true'
>
</meting-js>
</div>
</div>
<script src="/javanblog/libs/aplayer/APlayer.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/meting@2/dist/Meting.min.js"></script>
<div class="container row center-align" style="margin-bottom: 0px !important;">
<div class="col s12 m8 l8 copy-right">
Copyright ©
<span id="year">2019-2021</span>
<span id="year">2019</span>
<a href="/javanblog/about" target="_blank">Javan</a>
| Powered by <a href="https://hexo.io/" target="_blank">Hexo</a>
| Theme <a href="https://github.com/blinkfox/hexo-theme-matery" target="_blank">Matery</a>
<br>
<span id="busuanzi_container_site_pv">
| <i class="far fa-eye"></i> 总访问量: <span id="busuanzi_value_site_pv"
class="white-color"></span> 次
</span>
<span id="busuanzi_container_site_uv">
| <i class="fas fa-users"></i> 总访问人数: <span id="busuanzi_value_site_uv"
class="white-color"></span> 人
</span>
<br>
<br>
</div>
<div class="col s12 m4 l4 social-link social-statis">
<a href="https://github.com/blinkfox" class="tooltipped" target="_blank" data-tooltip="访问我的GitHub" data-position="top" data-delay="50">
<i class="fab fa-github"></i>
</a>
<a href="mailto:1181062873@qq.com" class="tooltipped" target="_blank" data-tooltip="邮件联系我" data-position="top" data-delay="50">
<i class="fas fa-envelope-open"></i>
</a>
<a href="tencent://AddContact/?fromId=50&fromSubId=1&subcmd=all&uin=1181062873" class="tooltipped" target="_blank" data-tooltip="QQ联系我: 1181062873" data-position="top" data-delay="50">
<i class="fab fa-qq"></i>
</a>
<a href="/javanblog/atom.xml" class="tooltipped" target="_blank" data-tooltip="RSS 订阅" data-position="top" data-delay="50">
<i class="fas fa-rss"></i>
</a>
</div>
</div>
</footer>
<div class="progress-bar"></div>
<!-- 搜索遮罩框 -->
<div id="searchModal" class="modal">
<div class="modal-content">
<div class="search-header">
<span class="title"><i class="fas fa-search"></i> 搜索</span>
<input type="search" id="searchInput" name="s" placeholder="请输入搜索的关键字"
class="search-input">
</div>
<div id="searchResult"></div>
</div>
</div>
<script type="text/javascript">
$(function () {
var searchFunc = function (path, search_id, content_id) {
'use strict';
$.ajax({
url: path,
dataType: "xml",
success: function (xmlResponse) {
// get the contents from search data
var datas = $("entry", xmlResponse).map(function () {
return {
title: $("title", this).text(),
content: $("content", this).text(),
url: $("url", this).text()
};
}).get();
var $input = document.getElementById(search_id);
var $resultContent = document.getElementById(content_id);
$input.addEventListener('input', function () {
var str = '<ul class=\"search-result-list\">';
var keywords = this.value.trim().toLowerCase().split(/[\s\-]+/);
$resultContent.innerHTML = "";
if (this.value.trim().length <= 0) {
return;
}
// perform local searching
datas.forEach(function (data) {
var isMatch = true;
var data_title = data.title.trim().toLowerCase();
var data_content = data.content.trim().replace(/<[^>]+>/g, "").toLowerCase();
var data_url = data.url;
data_url = data_url.indexOf('/') === 0 ? data.url : '/' + data_url;
var index_title = -1;
var index_content = -1;
var first_occur = -1;
// only match artiles with not empty titles and contents
if (data_title !== '' && data_content !== '') {
keywords.forEach(function (keyword, i) {
index_title = data_title.indexOf(keyword);
index_content = data_content.indexOf(keyword);
if (index_title < 0 && index_content < 0) {
isMatch = false;
} else {
if (index_content < 0) {
index_content = 0;
}
if (i === 0) {
first_occur = index_content;
}
}
});
}
// show search results
if (isMatch) {
str += "<li><a href='" + data_url + "' class='search-result-title'>" + data_title + "</a>";
var content = data.content.trim().replace(/<[^>]+>/g, "");
if (first_occur >= 0) {
// cut out 100 characters
var start = first_occur - 20;
var end = first_occur + 80;
if (start < 0) {
start = 0;
}
if (start === 0) {
end = 100;
}
if (end > content.length) {
end = content.length;
}
var match_content = content.substr(start, end);
// highlight all keywords
keywords.forEach(function (keyword) {
var regS = new RegExp(keyword, "gi");
match_content = match_content.replace(regS, "<em class=\"search-keyword\">" + keyword + "</em>");
});
str += "<p class=\"search-result\">" + match_content + "...</p>"
}
str += "</li>";
}
});
str += "</ul>";
$resultContent.innerHTML = str;
});
}
});
};
searchFunc('/javanblog/search.xml', 'searchInput', 'searchResult');
});
</script>
<!-- 回到顶部按钮 -->
<div id="backTop" class="top-scroll">
<a class="btn-floating btn-large waves-effect waves-light" href="#!">
<i class="fas fa-arrow-up"></i>
</a>
</div>
<script src="/javanblog/libs/materialize/materialize.min.js"></script>
<script src="/javanblog/libs/masonry/masonry.pkgd.min.js"></script>
<script src="/javanblog/libs/aos/aos.js"></script>
<script src="/javanblog/libs/scrollprogress/scrollProgress.min.js"></script>
<script src="/javanblog/libs/lightGallery/js/lightgallery-all.min.js"></script>
<script src="/javanblog/js/matery.js"></script>
<!-- Baidu Analytics -->
<!-- Baidu Push -->
<script>
(function () {
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
if (curProtocol === 'https') {
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
} else {
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
})();
</script>
<script src="/javanblog/libs/others/clicklove.js" async="async"></script>
<script async src="/javanblog/libs/others/busuanzi.pure.mini.js"></script>
<!--腾讯兔小巢-->
<script src="/javanblog/libs/instantpage/instantpage.js" type="module"></script>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。