代码拉取完成,页面将自动刷新
<!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.0, maximum-scale=1.0, user-scalable=no"><title>Could Notes of CJerry</title><meta name="author" content="Jerry Chen"><meta name="copyright" content="Jerry Chen"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="You have to put a grape in your mouth to call it sour">
<meta property="og:type" content="website">
<meta property="og:title" content="Could Notes of CJerry">
<meta property="og:url" content="https://cjerry391_admin.gitee.io/cloudnotes/index.html">
<meta property="og:site_name" content="Could Notes of CJerry">
<meta property="og:description" content="You have to put a grape in your mouth to call it sour">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://cjerry391_admin.gitee.io/cloudnotes/img/avator.jpg">
<meta property="article:author" content="Jerry Chen">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://cjerry391_admin.gitee.io/cloudnotes/img/avator.jpg"><link rel="shortcut icon" href="/cloudnotes/img/favicon.png"><link rel="canonical" href="https://cjerry391_admin.gitee.io/cloudnotes/"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/cloudnotes/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'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = {
root: '/cloudnotes/',
algolia: undefined,
localSearch: undefined,
translate: undefined,
noticeOutdate: undefined,
highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
copy: {
success: '复制成功',
error: '复制错误',
noSupport: '浏览器不支持'
},
relativeDate: {
homepage: false,
post: false
},
runtime: '',
date_suffix: {
just: '刚刚',
min: '分钟前',
hour: '小时前',
day: '天前',
month: '个月前'
},
copyright: undefined,
lightbox: 'fancybox',
Snackbar: undefined,
source: {
justifiedGallery: {
js: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery@2/dist/fjGallery.min.js',
css: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery@2/dist/fjGallery.min.css'
}
},
isPhotoFigcaption: false,
islazyload: false,
isAnchor: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
title: 'Could Notes of CJerry',
isPost: false,
isHome: true,
isHighlightShrink: false,
isToc: false,
postUpdate: '2022-02-10 09:46:49'
}</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(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
document.documentElement.classList.add('apple')
}
}
detectApple()
})(window)</script><link rel="stylesheet" href="/css/background.css"><link rel="stylesheet" href="/css/VolantisTags.css"><meta name="generator" content="Hexo 6.0.0"></head><body><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="/cloudnotes/img/avator.jpg" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="site-data is-center"><div class="data-item"><a href="/cloudnotes/archives/"><div class="headline">文章</div><div class="length-num">2</div></a></div><div class="data-item"><a href="/cloudnotes/tags/"><div class="headline">标签</div><div class="length-num">1</div></a></div><div class="data-item"><a href="/cloudnotes/categories/"><div class="headline">分类</div><div class="length-num">1</div></a></div></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/cloudnotes/"><i class="fa-fw fas fa-home"></i><span> 主页</span></a></div><div class="menus_item"><a class="site-page" href="/cloudnotes/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/cloudnotes/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/cloudnotes/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/cloudnotes/music/"><i class="fa-fw fas fa-music"></i><span> 音乐</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 外链</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/cloudnotes/link/"><i class="fa-fw fas fas fa-link"></i><span> 技术友链</span></a></li><li><a class="site-page child" href="/cloudnotes/share/"><i class="fa-fw fas fa-folder-open"></i><span> 资源分享</span></a></li><li><a class="site-page child" href="/cloudnotes/about/"><i class="fa-fw fas fa-heart"></i><span> 关于本站</span></a></li></ul></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-folder-open"></i><span> 文档</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" target="_blank" rel="noopener" href="https://git-scm.com/book/zh/v2"><span> Git中文教程</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://www.nginx.cn/doc/index.html"><span> Nginx中文文档</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://mybatis.org/mybatis-3/zh/index.html"><span> Mybatis中文文档</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="http://nodejs.cn/learn"><span> Nodejs中文文档</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://www.springcloud.cc/spring-reference.html"><span> Spring中文文档</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://docs.oracle.com/javase/8/docs/api/index.html"><span> Java8官方文档</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://maven.apache.org/guides/"><span> Maven官方文档</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://tomcat.apache.org/tomcat-8.0-doc/index.html"><span> Tomcat8官方文档</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/"><span> Spring Boot官方文档</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://spring.io/projects/spring-cloud"><span> Spring Cloud官方文档</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://docs.docker.com/get-started/"><span> Docker官方文档</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://www.thymeleaf.org/documentation.html"><span> Thymeleaf官方文档</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://cn.vuejs.org/v2/guide/"><span> Vue.js中文文档</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://reactjs.org/docs/getting-started.html"><span> React.js官方文档</span></a></li></ul></div></div></div></div><div class="page" id="body-wrap"><header class="full_page" id="page-header" style="background-image: url('/cloudnotes/img/20.jpg')"><nav id="nav"><span id="blog_name"><a id="site-name" href="/cloudnotes/">Could Notes of CJerry</a></span><div id="menus"><div class="menus_items"><div class="menus_item"><a class="site-page" href="/cloudnotes/"><i class="fa-fw fas fa-home"></i><span> 主页</span></a></div><div class="menus_item"><a class="site-page" href="/cloudnotes/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/cloudnotes/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/cloudnotes/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/cloudnotes/music/"><i class="fa-fw fas fa-music"></i><span> 音乐</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 外链</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/cloudnotes/link/"><i class="fa-fw fas fas fa-link"></i><span> 技术友链</span></a></li><li><a class="site-page child" href="/cloudnotes/share/"><i class="fa-fw fas fa-folder-open"></i><span> 资源分享</span></a></li><li><a class="site-page child" href="/cloudnotes/about/"><i class="fa-fw fas fa-heart"></i><span> 关于本站</span></a></li></ul></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-folder-open"></i><span> 文档</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" target="_blank" rel="noopener" href="https://git-scm.com/book/zh/v2"><span> Git中文教程</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://www.nginx.cn/doc/index.html"><span> Nginx中文文档</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://mybatis.org/mybatis-3/zh/index.html"><span> Mybatis中文文档</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="http://nodejs.cn/learn"><span> Nodejs中文文档</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://www.springcloud.cc/spring-reference.html"><span> Spring中文文档</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://docs.oracle.com/javase/8/docs/api/index.html"><span> Java8官方文档</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://maven.apache.org/guides/"><span> Maven官方文档</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://tomcat.apache.org/tomcat-8.0-doc/index.html"><span> Tomcat8官方文档</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/"><span> Spring Boot官方文档</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://spring.io/projects/spring-cloud"><span> Spring Cloud官方文档</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://docs.docker.com/get-started/"><span> Docker官方文档</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://www.thymeleaf.org/documentation.html"><span> Thymeleaf官方文档</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://cn.vuejs.org/v2/guide/"><span> Vue.js中文文档</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://reactjs.org/docs/getting-started.html"><span> React.js官方文档</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"><h1 id="site-title">Could Notes of CJerry</h1></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"><div class="post_cover left"><a href="/cloudnotes/2022/02/09/%E7%AE%97%E6%B3%95%E8%A7%A3%E9%A2%98%E6%8A%A5%E5%91%8A/" title="算法解题报告"><img class="post_bg" src="https://images.pexels.com/photos/546819/pexels-photo-546819.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" onerror="this.onerror=null;this.src='/cloudnotes/img/404.jpg'" alt="算法解题报告"></a></div><div class="recent-post-info"><a class="article-title" href="/cloudnotes/2022/02/09/%E7%AE%97%E6%B3%95%E8%A7%A3%E9%A2%98%E6%8A%A5%E5%91%8A/" 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="2022-02-09T05:37:16.000Z" title="发表于 2022-02-09 13:37:16">2022-02-09</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/cloudnotes/categories/%E5%8D%97%E5%B8%88%E5%A4%A7/">南师大</a></span></div><div class="content">动态规划背包DP关于背包的动态规划问题有经典的背包九讲文章,这里这篇文章个人感觉总结的很详细:背包九讲总结
AcWing 2. 01背包问题解题思路闫氏DP法,将DP通过状态表示和状态计算可以较为清晰地构造状态转移方程,dp方程考虑每次对一某一物品i,有两种选择取和不取的状态进行转移,从而完成该问题。
AC实现代码1234567891011121314151617181920//暴力解法int f[1010][1010];void solve(){ int N,V; cin>>N>>V; for(int i=1;i<=N;i++){ cin>>v[i]>>w[i]; } f[0][0]=0; for(int i=1;i<=N;i++){ for(int j=0;j<=V;j++){ for(int k=0;k<=j;k++){ if(j>=k*v[i])f[i][j]=max(f[i-1][j],f[i-1][j-k*v[i]]+k* ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/cloudnotes/2022/02/09/hello-world/" title="Hello World"><img class="post_bg" src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" onerror="this.onerror=null;this.src='/cloudnotes/img/404.jpg'" alt="Hello World"></a></div><div class="recent-post-info"><a class="article-title" href="/cloudnotes/2022/02/09/hello-world/" title="Hello World">Hello World</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="2022-02-09T03:30:36.084Z" title="发表于 2022-02-09 11:30:36">2022-02-09</time></span></div><div class="content">Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment
</div></div></div><nav id="pagination"><div class="pagination"><span class="page-number current">1</span></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="/cloudnotes/img/avator.jpg" onerror="this.onerror=null;this.src='/cloudnotes/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">Jerry Chen</div><div class="author-info__description">You have to put a grape in your mouth to call it sour</div></div><div class="card-info-data is-center"><div class="card-info-data-item"><a href="/cloudnotes/archives/"><div class="headline">文章</div><div class="length-num">2</div></a></div><div class="card-info-data-item"><a href="/cloudnotes/tags/"><div class="headline">标签</div><div class="length-num">1</div></a></div><div class="card-info-data-item"><a href="/cloudnotes/categories/"><div class="headline">分类</div><div class="length-num">1</div></a></div></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/Jerry391"><i class="fab fa-github"></i><span>Follow Me</span></a></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">This is my Blog</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="/cloudnotes/2022/02/09/%E7%AE%97%E6%B3%95%E8%A7%A3%E9%A2%98%E6%8A%A5%E5%91%8A/" title="算法解题报告"><img src="https://images.pexels.com/photos/546819/pexels-photo-546819.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" onerror="this.onerror=null;this.src='/cloudnotes/img/404.jpg'" alt="算法解题报告"/></a><div class="content"><a class="title" href="/cloudnotes/2022/02/09/%E7%AE%97%E6%B3%95%E8%A7%A3%E9%A2%98%E6%8A%A5%E5%91%8A/" title="算法解题报告">算法解题报告</a><time datetime="2022-02-09T05:37:16.000Z" title="发表于 2022-02-09 13:37:16">2022-02-09</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/cloudnotes/2022/02/09/hello-world/" title="Hello World"><img src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" onerror="this.onerror=null;this.src='/cloudnotes/img/404.jpg'" alt="Hello World"/></a><div class="content"><a class="title" href="/cloudnotes/2022/02/09/hello-world/" title="Hello World">Hello World</a><time datetime="2022-02-09T03:30:36.084Z" title="发表于 2022-02-09 11:30:36">2022-02-09</time></div></div></div></div><div class="card-widget card-categories"><div class="item-headline">
<i class="fas fa-folder-open"></i>
<span>分类</span>
</div>
<ul class="card-category-list" id="aside-cat-list">
<li class="card-category-list-item "><a class="card-category-list-link" href="/cloudnotes/categories/%E5%8D%97%E5%B8%88%E5%A4%A7/"><span class="card-category-list-name">南师大</span><span class="card-category-list-count">1</span></a></li>
</ul></div><div class="card-widget card-tags"><div class="item-headline"><i class="fas fa-tags"></i><span>标签</span></div><div class="card-tag-cloud"><a href="/cloudnotes/tags/%E7%AE%97%E6%B3%95%E8%AE%BE%E8%AE%A1%E4%B8%8E%E5%88%86%E6%9E%90/" style="font-size: 1.1em; color: #999">算法设计与分析</a></div></div><div class="card-widget card-archives"><div class="item-headline"><i class="fas fa-archive"></i><span>归档</span></div><ul class="card-archive-list"><li class="card-archive-list-item"><a class="card-archive-list-link" href="/cloudnotes/archives/2022/02/"><span class="card-archive-list-date">二月 2022</span><span class="card-archive-list-count">2</span></a></li></ul></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">2</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-02-10T01:46:48.920Z"></div></div></div></div><div class="card-widget user-map" id="user-map"><div class="item-headline"><i class="fas fa-heartbeat"></i><span>访客地图</span></div><div class="item-content"><script type="text/javascript" id="clstr_globe" src="//clustrmaps.com/globe.js?d=5V2tOKp8qAdRM-i8eu7ETTO9ugt5uKbbG-U7Yj8uMl8"></script></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">©2020 - 2022 By Jerry Chen</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><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><script src="/cloudnotes/js/utils.js"></script><script src="/cloudnotes/js/main.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.umd.js"></script><div class="js-pjax"></div><div class="aplayer no-destroy" data-id="7103348993" data-server="netease" data-type="playlist" data-fixed="true" data-mini="true" data-listFolded="false" data-order="random" data-preload="none" data-autoplay="true" data-mutex="true" muted></div><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"]
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.tocScrollFn && window.removeEventListener('scroll', window.tocScrollFn)
window.scrollCollect && window.removeEventListener('scroll', scrollCollect)
typeof preloader === 'object' && preloader.initLoading()
document.getElementById('rightside').style.cssText = "opacity: ''; transform: ''"
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()
// 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></body></html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。