加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
search.xml 340.84 KB
一键复制 编辑 原始数据 按行查看 历史
chang 提交于 2020-03-03 02:32 . Site updated: 2020-03-03 02:32:08
<?xml version="1.0" encoding="utf-8"?>
<search>
<entry>
<title>Google Adsense申请小窍门,我的踩坑记录</title>
<link href="/post/14278.html"/>
<url>/post/14278.html</url>
<content type="html"><![CDATA[<h1 id="how-to-apply-for-google-adsense"><a class="markdownIt-Anchor" href="#how-to-apply-for-google-adsense"></a> How to apply for Google-adsense</h1><p>今天登进我的google-adsense账户里一看。1.94刀,那种感觉真的是—一个字—太爽了<br><img alt="ads.png" data-src="/images/Google-ads-apply/ads.png" class="lazyload"><br>下面就来一看我是怎么申请并通过的吧!</p><a id="more"></a><h2 id="开始申请"><a class="markdownIt-Anchor" href="#开始申请"></a> 开始申请</h2><h3 id="准备工作"><a class="markdownIt-Anchor" href="#准备工作"></a> 准备工作</h3><ol><li>有一个自己的小网站。相信看到这篇文章的人基本都有一个自己的网站了。</li><li>有一个 Google 账号。什么!!你没有也不知道怎么注册,网上有很多自己去找找。</li><li>你得能够科学上网。这里就不说怎么实现科学上网了,网络上能找到很多的教程。</li></ol><h3 id="注册-adsense"><a class="markdownIt-Anchor" href="#注册-adsense"></a> 注册 Adsense</h3><ol><li><p>注册地址:<a href="http://www.google.cn/adsense/start/#/?modal_active=none" target="_blank" rel="noopener">Adsense</a> , 点击“立即注册”</p></li><li><p>填写申请的网站地址以及邮箱账号,点击保存并继续 <img alt="ads1.jpg" data-src="/images/Google-ads-apply/ads1.jpg" class="lazyload"></p></li><li><p>填写个人信息。建议都用你的真实信息,以后体现好像会用到。<img alt="ads2.jpg" data-src="/images/Google-ads-apply/ads2.jpg" class="lazyload"></p><blockquote><p>如果有 Google 账号直接点击左下角的 Sign in instead</p></blockquote></li><li><p>输入收款人信息,要与你银行帐户的信息相匹配,接下来,填写你的联系信息和其他详细信息以继续,包括你的全名、地址、国家/地区和电话(电话一定要能收到信息),这将在你达到Adsense付款标准时和后面的PIN码接收时使用。<img alt="ads3.jpg" data-src="/images/Google-ads-apply/ads3.jpg" class="lazyload"></p></li><li><p>同意协议并提交,不出意外的话,这就注册成功了。<img alt="ads4.jpg" data-src="/images/Google-ads-apply/ads4.jpg" class="lazyload"></p></li><li><p>注册成功后, Google Adsense 会给你一串代码让你放在 <head> 标签下用以验证你的网站是否归属于你 <img alt="ads5.jpg" data-src="/images/Google-ads-apply/ads5.jpg" class="lazyload"></head></p></li><li><p>在你提交完后,就耐心的退出,乖乖的等着或者再完善下你的网站。基本上第二天你的邮箱就能收到 Google Adsense 的审核结果通知了</p><p>如果是这个,<img alt="ads6.jpg" data-src="/images/Google-ads-apply/ads6.png" class="lazyload"> 那么恭喜你你可以开始你的 Google Adsense 之旅了。。。<br>如果不是,别灰心看看是不是你内容还不够。</p></li></ol><h3 id="注意事项"><a class="markdownIt-Anchor" href="#注意事项"></a> 注意事项</h3><ol><li>你的网站在境外必须能上。</li><li>网站必须有文章有内容,最好有10+篇文章。</li><li>你的域名<code>不能</code>是那种<code>免费域名</code>,必须有<code>自己的域名</code>,小张我在这里踩了点坑。</li><li>网站摆弄的好看些,毕竟 Google Adsense 广告是靠点击产生收益的,要是不好看没流量哪来的点击收益。</li></ol><p>至此正文讲完了,你可以去开始你的申请了。。。</p><h2 id="絮絮叨"><a class="markdownIt-Anchor" href="#絮絮叨"></a> 絮絮叨</h2><p>最开始申请谷歌联盟广告的时候以为只要文章内容够了差不太多就能通过 Adsense ,结果申请了5~6次都没有通过。<br>后来偶然间看到一篇文章,说 freenom 的 .tk .gq 等等域名在你的网站流量上去后会给你收回,放上他们自己的广告,让你哭都没地方哭。恰巧碰上了鹅厂做活动白嫖了个 <a href="52chang.wang">52chang.wang</a> 的域名,于是乎,赶紧换了。自打我换了后,申请 Adsense 几乎就是秒过。晚上 23:00 提交的,第二天早上 6:00 就告诉我已经通过了。在此期间我的网站除了域名变动外从未做过任何的变更。自此我开始了我的 Google 之旅。。。</p><blockquote><p>最后,请允许我不要脸,希望您看到这篇文章,能帮我点一下网站的广告以刺激刺激我那扑通扑通的小心脏。</p></blockquote>]]></content>
<categories>
<category> 记录 </category>
<category> 折腾 </category>
<category> blog </category>
</categories>
<tags>
<tag> 记录 </tag>
<tag> Google Adsense </tag>
<tag> 谷歌联盟 </tag>
<tag> ads </tag>
</tags>
</entry>
<entry>
<title>git使用技巧(自用)</title>
<link href="/post/35909.html"/>
<url>/post/35909.html</url>
<content type="html"><![CDATA[<p>近期在将源码保存到github、coding之类的git管理仓库,为之做个记录。</p><h1 id="基本操作"><a class="markdownIt-Anchor" href="#基本操作"></a> 基本操作</h1><ol><li><p><code>git init</code> 仓库初始化</p></li><li><p><code>git add &lt;文件名&gt;</code> 添加文件到本地仓库暂存区</p></li><li><p><code>git commit -m &quot;&lt;提交描述&gt;&quot;</code> 提交到本地仓库</p></li><li><p><code>git branch &lt;分支名&gt;</code> 本地仓库创建分支</p></li><li><p><code>git switch &lt;分支名&gt;</code> 本地切换分支</p><p>也可以直接用 <code>git checkout -b &lt;分支名&gt;</code> 表示创建并切换到分支</p></li><li><p><code>git remote add &lt;远程仓库名&gt; &lt;远程仓库地址&gt;</code> 关联/添加远程仓库</p></li><li><p><code>git push &lt;远程仓库名&gt; &lt;远程仓库分支&gt;</code> 提交到远程仓库</p></li></ol><h1 id="重命名git分支名称"><a class="markdownIt-Anchor" href="#重命名git分支名称"></a> 重命名git分支名称</h1><ol><li><p><code>git branch -m &lt;要改的本地分支名&gt; &lt;修改后的分支名&gt;</code> 修改本地分支</p></li><li><p><code>git push origin :&lt;远程修改前的分支名&gt;</code> 删除远程分支</p></li><li><p><code>git push origin &lt;修改后的分支名&gt;:&lt;修改后的分支名&gt;</code> push到远程分支</p></li><li><p><code>git branch --set-upstream &lt;修改后的分支名&gt; &lt;origin/修改后的分支名&gt;</code> 绑定远程分支</p></li></ol><h1 id="克隆指定分支版本库"><a class="markdownIt-Anchor" href="#克隆指定分支版本库"></a> 克隆指定分支/版本库</h1><p><code>git clone -b &lt;分支名&gt; &lt;远程仓库地址&gt;</code> 克隆制定分支</p><p><code>git clone -b &lt;版本库&gt; &lt;远程仓库地址&gt;</code> 克隆指定版本库</p><h1 id="git强制推送"><a class="markdownIt-Anchor" href="#git强制推送"></a> git强制推送</h1><p><code>git push &lt;远程库名&gt; &lt;远程库分支&gt; --force</code> 强制推送</p><h1 id="git版本回退"><a class="markdownIt-Anchor" href="#git版本回退"></a> git版本回退</h1><p><code>git log</code> 查看历史commit记录</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">Code</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line">Author: Qj9901 &lt;z81137@126.com&gt;</span><br><span class="line">Date: Wed Nov 20 14:45:48 2019 +0800</span><br><span class="line"></span><br><span class="line"> 删除Matery</span><br><span class="line"></span><br><span class="line">commit e7e54977b20d4b54163e822e3b64ebc97919ff32</span><br><span class="line">Author: Qj9901 &lt;z81137@126.com&gt;</span><br><span class="line">Date: Wed Nov 20 14:23:26 2019 +0800</span><br><span class="line"></span><br><span class="line"> 修复matery漏图</span><br><span class="line"></span><br><span class="line">commit 218e62a361fcf3bcbd7ac7dc4fc4788e4ac14fac</span><br><span class="line">Author: Qj9901 &lt;z81137@126.com&gt;</span><br><span class="line">Date: Wed Nov 20 14:22:11 2019 +0800</span><br></pre></td></tr></table></figure></div><p><code>git log --pretty=oneline</code> 加上<code>--pretty=oneline</code>,看起来更简洁</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">Code</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">$ git log --pretty&#x3D;oneline</span><br><span class="line">a1891ad7f1b0330a71e5aca38c7d1b47f9f791ba (HEAD -&gt; master, origin&#x2F;master, origin&#x2F;HEAD) 删除Matery</span><br><span class="line">e7e54977b20d4b54163e822e3b64ebc97919ff32 修复matery漏图</span><br><span class="line">218e62a361fcf3bcbd7ac7dc4fc4788e4ac14fac 修复matery漏图</span><br></pre></td></tr></table></figure></div><p><code>git reset --hard &lt;版本id&gt;</code> 回退到对应id的版本 &lt;版本id&gt;就是上面一长串的英文数字组合</p><p>回退版本后又想回到新版怎么办?</p><p><code>git reflog</code> 记录你的每一次命令</p><p>在Git中,当使用<code>git reset --hard &lt;版本id&gt;</code>回退到旧版本时,再想恢复到新版本,就必须找到新版本的版本id。Git提供了一个命令git reflog用来记录你的每一次命令:</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">Code</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">$ git reflog</span><br><span class="line">218e62a (HEAD -&gt; master) HEAD@&#123;0&#125;: reset: moving to 218e62a</span><br><span class="line">a1891ad (origin&#x2F;master, origin&#x2F;HEAD) HEAD@&#123;3&#125;: commit: 删除Matery</span><br><span class="line">e7e5497 HEAD@&#123;4&#125;: commit: 修复matery漏图</span><br><span class="line">218e62a (HEAD -&gt; master) HEAD@&#123;5&#125;: commit: 修复matery漏图</span><br></pre></td></tr></table></figure></div>]]></content>
<categories>
<category> 笔记 </category>
</categories>
<tags>
<tag> git </tag>
<tag> 记录 </tag>
</tags>
</entry>
<entry>
<title>The origins of Halloween</title>
<link href="/post/34560.html"/>
<url>/post/34560.html</url>
<content type="html"><![CDATA[<h2 id="the-origins-of-halloween"><a class="markdownIt-Anchor" href="#the-origins-of-halloween"></a> The origins of Halloween</h2><p>Halloween has been around for more than a thousand years. Originally a religiousobservance, it became increasingly secular over the centuries until its religious trappings all but disappeared. Today Halloween is considered a holiday for dress-upand fun, especially for children. <a id="more"></a><br>Halloween’s origins can be traced back to the ancient Celtic festival known as Samhain, which was held on November 1 in contemporary calendars. It was believedthat on that day, the souls of the dead returned to their homes, so people dressed incostumes and lit bonfires to ward off spirits. In this way, popular Halloween tropessuch as witches, ghosts, and goblins became associated with the holiday.<br>In the 7th century CE, Pope Boniface IV created All Saints Day, originally celebratedon May 13. A century later, Pope Gregory III moved the holiday to November 1, likely as a Christian substitute for the pagan festival of Samhain. The day before the saintly celebration became known as All Hallows Eve, or Halloween.<br>Though the holiday began in Celtic regions of Ireland, the United Kingdom, andFrance, it quickly spread to other parts of the world. The first American colonists in New England were forbidden to celebrate it for religious reasons, though it enjoyed some popularity in the Southern colonies. By the 1800s, fall festivals marking theseasonal harvest incorporated Halloween elements, and Irish immigrants escaping the devastating Potato Famine brought with them many Halloween traditions that remain today.<br>The custom of trick-or- treating, in which children dress up in costume and solicit treats from neighbors, became popular in the United States in the early 20th century as Irish and Scottish communities revived the Old World custom of “guising,” in which a person would dress in costume and tell a joke, recite a poem, or performsome other trick in exchange for a piece of fruit or other treat. By 1950, trick-or-treating for candy had become one of Halloween’s most popular activities. Today,Halloween is one of the biggest holidays for candy sales in the United States,exceeding $2.5 billion annually.</p><h2 id="万圣节"><a class="markdownIt-Anchor" href="#万圣节"></a> 万圣节</h2><p>万圣节已经有一千多年的历史了。它最初是一个宗教仪式, 几个世纪以来它变得越来越世俗,直到它的宗教装饰几乎消失。今天万圣节被认为是装扮和娱乐的节日,尤其是对孩子们来说。<br>万圣节的起源可以追溯到古代凯尔特人被称为Samhain的节日,在现代日历上是在11月1日举行的。人们相信,在那一天,死者的灵魂会回到他们的家,所以人们穿着服装,点燃篝火来驱赶鬼魂。就这样,万圣节流行的巫婆、鬼魂和妖精等与节日关联起来了。<br>公元7 世纪,教皇Boniface 四世创立了万圣节,最初是在5月13日庆祝的。一个世纪后,教皇Pope Gregory三世把这个节日改到11月1日,可能是作为异教徒萨温节的替代。在这个节日的前一天被称为万圣节前夕或者万圣节。<br>尽管这个节日起源于爱尔兰、英国和法国的凯尔特地区,但它很快就传到了世界其他地方。新英格兰的第一批美国殖民者由于宗教原因被禁止庆祝它,尽管它在南部殖民地颇受欢迎。到了19世纪,标志着季节性丰收的秋季节日融入了万圣节的元素,爱尔兰移民们从毁灭性的马铃薯饥荒中逃离,带来了许多至今仍保留的万圣节传统。<br>“不给糖就捣蛋”的习俗,即孩子穿上服装并要求邻居款待,20世纪初在美国随着爱尔兰和苏格兰社区恢复了旧世界的“装扮风俗而流行起来。一个人会穿着盛装打扮,讲个笑话,背诵一首诗,或进行其他技巧,以换取一块水果或其他点心。到1950年,“不给糖就捣蛋*已经成为万圣节最受欢迎的活动之-一。如今,万圣节是美国糖果销售额最大的节日之一, 每年销售额超过25亿美元。</p>]]></content>
<categories>
<category> 学习 </category>
</categories>
<tags>
<tag> 记录 </tag>
</tags>
</entry>
<entry>
<title>安卓机建站大法</title>
<link href="/post/64353.html"/>
<url>/post/64353.html</url>
<content type="html"><![CDATA[<h1 id="背景"><a class="markdownIt-Anchor" href="#背景"></a> 背景</h1><p>由于电脑突然坏了,手上正好有个Mipad2,那么安卓手机上能不能建hexo网站呢于是就有了这篇文章。<a id="more"></a></p><blockquote><p>在安卓手机上建站属实不友好,不过在特殊情况下到不失为一个好方法。</p></blockquote><h2 id="termux简介"><a class="markdownIt-Anchor" href="#termux简介"></a> Termux简介</h2><p>Termux是一个Android下一个高级的终端模拟器,开源且不需要root,支持apt管理软件包,十分方便安装软件包,完美支持Python,PHP,Ruby,Go,Nodejs,MySQL等。随着智能设备的普及和性能的不断提升,如今的手机、平板等的硬件标准已达到了初级桌面计算机的硬件标准,用心去打造完全可以把手机变成一个强大的工具.</p><ul><li><a href="https://termux.com/" target="_blank" rel="noopener">官网</a></li><li><a href="https://github.com/termux/termux-app" target="_blank" rel="noopener">Github项目地址</a></li><li><a href="https://play.google.com/store/apps/details?id=com.termux" target="_blank" rel="noopener">Googleplay地址</a></li><li><a href="https://www.lanzous.com/i6zk05g" target="_blank" rel="noopener">蓝奏云下载</a></li></ul><blockquote><p>Google Play下载的版本比酷安要新,有能力建议下载Google PLay版本的.</p></blockquote><h1 id="开始"><a class="markdownIt-Anchor" href="#开始"></a> 开始</h1><h2 id="准备工作"><a class="markdownIt-Anchor" href="#准备工作"></a> 准备工作</h2><p>安装termux,安装完成后打开,termux会进行资源包的下载,待下载完成我们就得到了一个能用的终端了。终端命令与Linux的差不多。<br>在终端输入<code>pkg install vim</code>安装vim编辑器,由于termux自带的源在国外,所以我们给他换成国内镜像源,加快软件安装速度<br>输入命令<code>vim ~/../usr/etc/apt/sources.list</code>编辑<code>sources.list</code>文件内容为</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">Code</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">#deb https:&#x2F;&#x2F;termux.net stable main</span><br><span class="line">deb [arch&#x3D;all,你的手机处理器构架] http:&#x2F;&#x2F;mirrors.tuna.tsinghua.edu.cn&#x2F;termux stable main</span><br></pre></td></tr></table></figure></div><p>这里我用的是清华的镜像源<br>接下来输入命令<code>pkg update</code>、<code>pkg upgrade</code>来更新源以及软件。</p><h2 id="开始建站"><a class="markdownIt-Anchor" href="#开始建站"></a> 开始建站</h2><p>手机上搭建hexo静态博客我们需要nodejs框架以及git工具。</p><h3 id="安装工具"><a class="markdownIt-Anchor" href="#安装工具"></a> 安装工具</h3><p>输入命令,等待安装完成</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">bash</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">pkg install nodejs git</span><br></pre></td></tr></table></figure></div><p>安装完成后输入<code>git --vetsion</code>与<code>node -v</code>查看版本,若有其版本号出现则代表已成功安装。</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">Code</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">$ git --version</span><br><span class="line">git version 2.23.0</span><br><span class="line">$ node -v</span><br><span class="line">v12.12.0</span><br></pre></td></tr></table></figure></div><p>然后就跟电脑上搭建hexo博客一样。</p><h3 id="安装hexo并搭建本地博客"><a class="markdownIt-Anchor" href="#安装hexo并搭建本地博客"></a> 安装hexo并搭建本地博客</h3><p>看到这么多安装,千万不要紧张,小哥哥小姐姐们一定要稳住,别怕,因为后面用nodejs带的npm工具安装就好了。</p><ul><li>安装hexo命令:<code>npm install -g hexo</code>。</li><li>安装完成后,查看版本:<img alt="查看版本" data-src="https://cdn.jsdelivr.net/gh/qj9901/CDN@0.0.1/Android-phone-%E5%BB%BA%E7%AB%99/Termux-hexo_-v.jpg" class="lazyload"></li><li>之后与的步骤与在电脑上搭建相同。</li></ul><blockquote><p>设置git</p></blockquote><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">Code</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">git config --global user.name &quot;你的github用户名”</span><br><span class="line">git config --global user.email &quot;你的用户名对应的邮箱&quot;</span><br></pre></td></tr></table></figure></div><blockquote><p>生成ssh密钥</p></blockquote><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">Code</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ssh-keygen -t rsa -C &quot;youremail@example.com”</span><br></pre></td></tr></table></figure></div><blockquote><p>生成本地博客</p></blockquote><p>用<code>mkdir blog</code>命令新建一个名为blog的文件夹,然后cd命令进入到该文件夹,执行<code>hexo init</code>命令,生成本地博客。</p><blockquote><p>部署到GitHub上</p></blockquote><p>打开blog/_config.yml。找到deploy,在其下面添加</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">Code</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">deploy:</span><br><span class="line"> - type: git</span><br><span class="line"> repo:</span><br><span class="line"> github: 你的GitHub仓库部署地址,master</span><br></pre></td></tr></table></figure></div><p>最后执行<code>hexo cl &amp;&amp; hexo g &amp;&amp; hexo d</code>将本地博客部署到GitHub上。<br>效果展示:<br><img alt="终端效果" data-src="https://cdn.jsdelivr.net/gh/Qj9901/CDN@0.0.1/Android-phone-%E5%BB%BA%E7%AB%99/%E7%BB%88%E7%AB%AF%E6%95%88%E6%9E%9C%E5%9B%BE.png" class="lazyload"><br><img alt="建站效果" data-src="https://cdn.jsdelivr.net/gh/Qj9901/CDN@0.0.1/Android-phone-%E5%BB%BA%E7%AB%99/%E5%BB%BA%E7%AB%99%E6%95%88%E6%9E%9C%E5%9B%BE.png" class="lazyload"></p><blockquote><p>最后在手机上写文章可以用<a href="https://www.lanzous.com/i70g64d" target="_blank" rel="noopener">Kio这款软件</a>,上传图片可以使用<a href="https://www.lanzous.com/i6zx4sb" target="_blank" rel="noopener">smms图床</a>。<br>在KIO中写完文章,全选复制,然后进入termux用vim编辑器编辑文章,长按粘帖即可。</p></blockquote>]]></content>
<categories>
<category> 学习 </category>
<category> 折腾 </category>
<category> blog </category>
</categories>
<tags>
<tag> termux </tag>
<tag> 建站 </tag>
<tag> 写博客 </tag>
</tags>
</entry>
<entry>
<title>量子力学第二章</title>
<link href="/post/dfc0c8c7.html"/>
<url>/post/dfc0c8c7.html</url>
<content type="html"><![CDATA[<p>量子力学第二章</p><a id="more"></a><h1 id="波函数"><a class="markdownIt-Anchor" href="#波函数"></a> 波函数</h1><h2 id="满足条件"><a class="markdownIt-Anchor" href="#满足条件"></a> 满足条件</h2><ol><li>连续性</li><li>单值性</li><li>有限性</li></ol><h2 id="波函数的统计解释"><a class="markdownIt-Anchor" href="#波函数的统计解释"></a> 波函数的统计解释</h2><blockquote><p>波函数在空间中某一点的强度(振幅绝对值的平方)和在改点找到粒子的概率成正比。</p></blockquote><h3 id="数学表达式"><a class="markdownIt-Anchor" href="#数学表达式"></a> 数学表达式</h3><p><span class="katex-display"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>W</mi><mo stretchy="false">(</mo><mi>x</mi><mo separator="true">,</mo><mi>y</mi><mo separator="true">,</mo><mi>z</mi><mo stretchy="false">)</mo><mo>=</mo><mi>C</mi><msub><mo>∫</mo><mi mathvariant="normal">∞</mi></msub><msup><mi mathvariant="normal">Φ</mi><mo>∗</mo></msup><mi mathvariant="normal">Φ</mi><mi>d</mi><mi>τ</mi></mrow><annotation encoding="application/x-tex">W(x,y,z)=C\int_\infty\Phi^*\Phi d\tau</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord mathdefault" style="margin-right:0.13889em;">W</span><span class="mopen">(</span><span class="mord mathdefault">x</span><span class="mpunct">,</span><span class="mspace" style="margin-right:0.16666666666666666em;"></span><span class="mord mathdefault" style="margin-right:0.03588em;">y</span><span class="mpunct">,</span><span class="mspace" style="margin-right:0.16666666666666666em;"></span><span class="mord mathdefault" style="margin-right:0.04398em;">z</span><span class="mclose">)</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span></span><span class="base"><span class="strut" style="height:2.27195em;vertical-align:-0.9119499999999999em;"></span><span class="mord mathdefault" style="margin-right:0.07153em;">C</span><span class="mspace" style="margin-right:0.16666666666666666em;"></span><span class="mop"><span class="mop op-symbol large-op" style="margin-right:0.44445em;position:relative;top:-0.0011249999999999316em;">∫</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:-0.6105579999999999em;"><span style="top:-1.7880500000000001em;margin-left:-0.44445em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight">∞</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.9119499999999999em;"><span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.16666666666666666em;"></span><span class="mord"><span class="mord">Φ</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.738696em;"><span style="top:-3.113em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mbin mtight">∗</span></span></span></span></span></span></span></span><span class="mord">Φ</span><span class="mord mathdefault">d</span><span class="mord mathdefault" style="margin-right:0.1132em;">τ</span></span></span></span></span></p><h3 id="归一化"><a class="markdownIt-Anchor" href="#归一化"></a> 归一化</h3><blockquote><p>波函数在乘上一个常数后并不会改变在空间各点找到该点的几率,即不会改变该波函数下所描述的状态。</p></blockquote><h4 id="归一化条件"><a class="markdownIt-Anchor" href="#归一化条件"></a> 归一化条件</h4><p><span class="katex-display"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><msub><mo>∫</mo><mi mathvariant="normal">∞</mi></msub><msup><mi mathvariant="normal">Φ</mi><mo>∗</mo></msup><mi mathvariant="normal">Φ</mi><mi>d</mi><mi>τ</mi><mo>=</mo><mn>1</mn></mrow><annotation encoding="application/x-tex">\int_\infty\Phi^*\Phi d\tau=1</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:2.27195em;vertical-align:-0.9119499999999999em;"></span><span class="mop"><span class="mop op-symbol large-op" style="margin-right:0.44445em;position:relative;top:-0.0011249999999999316em;">∫</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:-0.6105579999999999em;"><span style="top:-1.7880500000000001em;margin-left:-0.44445em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight">∞</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.9119499999999999em;"><span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.16666666666666666em;"></span><span class="mord"><span class="mord">Φ</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.738696em;"><span style="top:-3.113em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mbin mtight">∗</span></span></span></span></span></span></span></span><span class="mord">Φ</span><span class="mord mathdefault">d</span><span class="mord mathdefault" style="margin-right:0.1132em;">τ</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span></span><span class="base"><span class="strut" style="height:0.64444em;vertical-align:0em;"></span><span class="mord">1</span></span></span></span></span></p><h2 id="态叠加原理"><a class="markdownIt-Anchor" href="#态叠加原理"></a> 态叠加原理</h2><h3 id="定义"><a class="markdownIt-Anchor" href="#定义"></a> 定义</h3><p>如果一定情况下ψ1,ψ2是体系的可能状态,那么他们的线性叠加态ψ=c1ψ1+c2ψ2也是体系的可能状态。或者说当体系处于ψ1和ψ2的线性叠加态时,体系既处于ψ1也处于ψ2。</p><h2 id="波函数动量描述与位置描述转化"><a class="markdownIt-Anchor" href="#波函数动量描述与位置描述转化"></a> 波函数动量描述与位置描述转化</h2><p><img alt="p-r-excheange" data-src="https://cdn.jsdelivr.net/gh/qj9901/CDN@0.0.1/%E9%87%8F%E5%AD%90%E5%8A%9B%E5%AD%A6%E7%AC%AC%E4%BA%8C%E7%AB%A0/Pr%E8%BD%AC%E5%8C%96.jpg" class="lazyload"></p><h2 id="量子中的守恒"><a class="markdownIt-Anchor" href="#量子中的守恒"></a> 量子中的守恒</h2><blockquote><p>波函数归一后将保持归一状态而不随时间变化。</p></blockquote><h3 id="粒子流密度"><a class="markdownIt-Anchor" href="#粒子流密度"></a> 粒子流密度</h3><p><img alt="jilvshouheng" data-src="https://cdn.jsdelivr.net/gh/qj9901/CDN@0.0.1/%E9%87%8F%E5%AD%90%E5%8A%9B%E5%AD%A6%E7%AC%AC%E4%BA%8C%E7%AB%A0/%E7%B2%92%E5%AD%90%E6%B5%81%E5%AF%86%E5%BA%A6.jpg" class="lazyload"></p><h3 id="粒子数守恒"><a class="markdownIt-Anchor" href="#粒子数守恒"></a> 粒子数守恒</h3><p><img alt="lizishushouheng" data-src="https://cdn.jsdelivr.net/gh/qj9901/CDN@0.0.1/%E9%87%8F%E5%AD%90%E5%8A%9B%E5%AD%A6%E7%AC%AC%E4%BA%8C%E7%AB%A0/%E7%B2%92%E5%AD%90%E6%95%B0%E5%AE%88%E6%81%92.jpg" class="lazyload"></p><h1 id="波函数求解"><a class="markdownIt-Anchor" href="#波函数求解"></a> 波函数求解</h1><h2 id="薛定谔方程"><a class="markdownIt-Anchor" href="#薛定谔方程"></a> 薛定谔方程</h2><h3 id="条件"><a class="markdownIt-Anchor" href="#条件"></a> 条件</h3><ol><li>满足对含时间微商的微分方程</li><li>方程是线性的</li><li>方程系数应不包含状态参量</li></ol><h3 id="方程基本形式"><a class="markdownIt-Anchor" href="#方程基本形式"></a> 方程基本形式</h3><p><span class="katex-display"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>H</mi><mi>ψ</mi><mo>=</mo><mo stretchy="false">(</mo><mi>U</mi><mo>+</mo><mi>T</mi><mo stretchy="false">)</mo><mi>ψ</mi></mrow><annotation encoding="application/x-tex">Hψ=(U+T)ψ</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="mord mathdefault" style="margin-right:0.08125em;">H</span><span class="mord mathdefault" style="margin-right:0.03588em;">ψ</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span></span><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mopen">(</span><span class="mord mathdefault" style="margin-right:0.10903em;">U</span><span class="mspace" style="margin-right:0.2222222222222222em;"></span><span class="mbin">+</span><span class="mspace" style="margin-right:0.2222222222222222em;"></span></span><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord mathdefault" style="margin-right:0.13889em;">T</span><span class="mclose">)</span><span class="mord mathdefault" style="margin-right:0.03588em;">ψ</span></span></span></span></span></p><blockquote><p>H为哈密顿算符,U为势能,T为动能</p></blockquote><h3 id="一般解法"><a class="markdownIt-Anchor" href="#一般解法"></a> 一般解法</h3><ol><li>列薛定谔方程</li><li>求通解</li><li>找边界条件带入求E</li><li>归一化求波函数</li></ol><h3 id="定态薛定谔方程能量本征方程"><a class="markdownIt-Anchor" href="#定态薛定谔方程能量本征方程"></a> 定态薛定谔方程(能量本征方程)</h3><h4 id="是什么"><a class="markdownIt-Anchor" href="#是什么"></a> 是什么?</h4><p>能量取得确定值时的方程。</p><h4 id="数学表达式-2"><a class="markdownIt-Anchor" href="#数学表达式-2"></a> 数学表达式</h4><p><span class="katex-display"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>E</mi><mi>ψ</mi><mo>=</mo><mo stretchy="false">(</mo><mi>U</mi><mo>+</mo><mi>T</mi><mo stretchy="false">)</mo><mi>ψ</mi></mrow><annotation encoding="application/x-tex">Eψ=(U+T)ψ</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="mord mathdefault" style="margin-right:0.05764em;">E</span><span class="mord mathdefault" style="margin-right:0.03588em;">ψ</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span></span><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mopen">(</span><span class="mord mathdefault" style="margin-right:0.10903em;">U</span><span class="mspace" style="margin-right:0.2222222222222222em;"></span><span class="mbin">+</span><span class="mspace" style="margin-right:0.2222222222222222em;"></span></span><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord mathdefault" style="margin-right:0.13889em;">T</span><span class="mclose">)</span><span class="mord mathdefault" style="margin-right:0.03588em;">ψ</span></span></span></span></span></p><h4 id="有何性质"><a class="markdownIt-Anchor" href="#有何性质"></a> 有何性质</h4><ol><li>几率,几率密度不随时间变化</li><li>任何力学量的平均值不随时间变化</li><li>任何力学量取各种可能值的概率分布也不随时间变化</li></ol><h4 id="怎么求解"><a class="markdownIt-Anchor" href="#怎么求解"></a> 怎么求解?</h4><h5 id="一维无限深势阱"><a class="markdownIt-Anchor" href="#一维无限深势阱"></a> 一维无限深势阱</h5><blockquote><p>一维空间运动的粒子其势能在一定区域内为0,而在此区域外势能无穷大的情况。</p></blockquote><blockquote><p><img alt="shijing" data-src="https://cdn.jsdelivr.net/gh/qj9901/CDN@0.0.1/%E9%87%8F%E5%AD%90%E5%8A%9B%E5%AD%A6%E7%AC%AC%E4%BA%8C%E7%AB%A0/%E4%B8%80%E7%BA%AC%E5%8A%BF%E4%BA%95.jpg" class="lazyload"></p></blockquote><h5 id="线性谐振子"><a class="markdownIt-Anchor" href="#线性谐振子"></a> 线性谐振子</h5><blockquote><p>在一维空间内运动的粒子势能为<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>1</mn><mi mathvariant="normal">/</mi><mn>2</mn><mi>m</mi><msup><mi>ω</mi><mn>2</mn></msup><msup><mi>x</mi><mn>2</mn></msup></mrow><annotation encoding="application/x-tex">1/2mω^2x^2</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.064108em;vertical-align:-0.25em;"></span><span class="mord">1</span><span class="mord">/</span><span class="mord">2</span><span class="mord mathdefault">m</span><span class="mord"><span class="mord mathdefault" style="margin-right:0.03588em;">ω</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.8141079999999999em;"><span style="top:-3.063em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight">2</span></span></span></span></span></span></span></span><span class="mord"><span class="mord mathdefault">x</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.8141079999999999em;"><span style="top:-3.063em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight">2</span></span></span></span></span></span></span></span></span></span></span>,ω为常量,则称这种体系为线性谐振子</p></blockquote><blockquote><p><img alt="xiezhenzi" data-src="https://cdn.jsdelivr.net/gh/qj9901/CDN@0.0.1/%E9%87%8F%E5%AD%90%E5%8A%9B%E5%AD%A6%E7%AC%AC%E4%BA%8C%E7%AB%A0/%E8%B0%90%E6%8C%AF%E5%AD%901.jpg" class="lazyload"><br><img alt="xiezhenzi" data-src="https://cdn.jsdelivr.net/gh/qj9901/CDN@0.0.1/%E9%87%8F%E5%AD%90%E5%8A%9B%E5%AD%A6%E7%AC%AC%E4%BA%8C%E7%AB%A0/%E8%B0%90%E6%8C%AF%E5%AD%902.jpg" class="lazyload"><br><img alt="xiezhenzi" data-src="https://cdn.jsdelivr.net/gh/qj9901/CDN@0.0.1/%E9%87%8F%E5%AD%90%E5%8A%9B%E5%AD%A6%E7%AC%AC%E4%BA%8C%E7%AB%A0/%E8%B0%90%E6%8C%AF%E5%AD%903.jpg" class="lazyload"><br><img alt="xiezhenzi" data-src="https://cdn.jsdelivr.net/gh/qj9901/CDN@0.0.1/%E9%87%8F%E5%AD%90%E5%8A%9B%E5%AD%A6%E7%AC%AC%E4%BA%8C%E7%AB%A0/%E8%B0%90%E6%8C%AF%E5%AD%904.jpg" class="lazyload"></p></blockquote><h5 id="势垒贯穿隧道效应"><a class="markdownIt-Anchor" href="#势垒贯穿隧道效应"></a> 势垒贯穿(隧道效应)</h5><blockquote><p>粒子能量<势垒高度时仍能贯穿势垒的现象</p></blockquote><blockquote><p><img alt="shilei" data-src="https://cdn.jsdelivr.net/gh/qj9901/CDN@0.0.1/%E9%87%8F%E5%AD%90%E5%8A%9B%E5%AD%A6%E7%AC%AC%E4%BA%8C%E7%AB%A0/%E5%8A%BF%E5%9E%921.jpg" class="lazyload"><br><img alt="shilei" data-src="https://cdn.jsdelivr.net/gh/qj9901/CDN@0.0.1/%E9%87%8F%E5%AD%90%E5%8A%9B%E5%AD%A6%E7%AC%AC%E4%BA%8C%E7%AB%A0/%E5%8A%BF%E5%9E%922.jpg" class="lazyload"><br><img alt="shilei" data-src="https://cdn.jsdelivr.net/gh/qj9901/CDN@0.0.1/%E9%87%8F%E5%AD%90%E5%8A%9B%E5%AD%A6%E7%AC%AC%E4%BA%8C%E7%AB%A0/%E5%8A%BF%E5%9E%923.jpg" class="lazyload"><br><img alt="shilei" data-src="https://cdn.jsdelivr.net/gh/qj9901/CDN@0.0.1/%E9%87%8F%E5%AD%90%E5%8A%9B%E5%AD%A6%E7%AC%AC%E4%BA%8C%E7%AB%A0/%E5%8A%BF%E5%9E%924.jpg" class="lazyload"><br><img alt="shilei" data-src="https://cdn.jsdelivr.net/gh/qj9901/CDN@0.0.1/%E9%87%8F%E5%AD%90%E5%8A%9B%E5%AD%A6%E7%AC%AC%E4%BA%8C%E7%AB%A0/%E5%8A%BF%E5%9E%925.jpg" class="lazyload"></p></blockquote>]]></content>
<categories>
<category> 专业课 </category>
<category> 量子力学 </category>
</categories>
<tags>
<tag> 笔记 </tag>
<tag> 学习 </tag>
<tag> 基础 </tag>
</tags>
</entry>
<entry>
<title>hexo文章代码块美化</title>
<link href="/post/1648bd84.html"/>
<url>/post/1648bd84.html</url>
<content type="html"><![CDATA[<h1 id="背景"><a class="markdownIt-Anchor" href="#背景"></a> 背景</h1><p>在美化hexo next主题的时候代码块的样式依旧很突兀,遂萌发了美化代码块的想法。说干咋就干。<a id="more"></a></p><h1 id="效果"><a class="markdownIt-Anchor" href="#效果"></a> 效果</h1><p>自己看下面的结果吧!</p><h1 id="实现方法"><a class="markdownIt-Anchor" href="#实现方法"></a> 实现方法</h1><h2 id="建立代码块js"><a class="markdownIt-Anchor" href="#建立代码块js"></a> 建立代码块js</h2><p>在next/scripts/目录下新建两个js文件分别命名为events.js以及codeblock.js</p><p>代码如下:</p><p>events.js代码</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">Javascript</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">// mac Panel效果代码块相关</span></span><br><span class="line"><span class="keyword">var</span> exec = <span class="built_in">require</span>(<span class="string">'child_process'</span>).exec;</span><br><span class="line"></span><br><span class="line"><span class="comment">// new 后自动打开编辑器</span></span><br><span class="line">hexo.on(<span class="string">'new'</span>, <span class="function"><span class="keyword">function</span>(<span class="params">data</span>)</span>&#123;</span><br><span class="line"> exec(<span class="string">'open -a MacDown '</span> + data.path);</span><br><span class="line">&#125;);</span><br></pre></td></tr></table></figure></div><p>codeblock.js代码</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">Javascript</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">// mac Panel效果代码块相关</span></span><br><span class="line"><span class="keyword">var</span> attributes = [</span><br><span class="line"> <span class="string">'autocomplete="off"'</span>,</span><br><span class="line"> <span class="string">'autocorrect="off"'</span>,</span><br><span class="line"> <span class="string">'autocapitalize="off"'</span>,</span><br><span class="line"> <span class="string">'spellcheck="false"'</span>,</span><br><span class="line"> <span class="string">'contenteditable="true"'</span></span><br><span class="line">]</span><br><span class="line"></span><br><span class="line"><span class="keyword">var</span> attributesStr = attributes.join(<span class="string">' '</span>)</span><br><span class="line"></span><br><span class="line">hexo.extend.filter.register(<span class="string">'after_post_render'</span>, <span class="function"><span class="keyword">function</span> (<span class="params">data</span>) </span>&#123;</span><br><span class="line"> <span class="keyword">while</span> (<span class="regexp">/&lt;figure class="highlight ([a-zA-Z]+)"&gt;.*?&lt;\/figure&gt;/</span>.test(data.content)) &#123;</span><br><span class="line"> data.content = data.content.replace(<span class="regexp">/&lt;figure class="highlight ([a-zA-Z]+)"&gt;.*?&lt;\/figure&gt;/</span>, <span class="function"><span class="keyword">function</span> (<span class="params"></span>) </span>&#123;</span><br><span class="line"> <span class="keyword">var</span> language = <span class="built_in">RegExp</span>.$<span class="number">1</span> || <span class="string">'plain'</span></span><br><span class="line"> <span class="keyword">var</span> lastMatch = <span class="built_in">RegExp</span>.lastMatch</span><br><span class="line"> lastMatch = lastMatch.replace(<span class="regexp">/&lt;figure class="highlight /</span>, <span class="string">'&lt;figure class="iseeu highlight /'</span>)</span><br><span class="line"> <span class="keyword">return</span> <span class="string">'&lt;div class="highlight-wrap"'</span> + attributesStr + <span class="string">'data-rel="'</span> + language.toUpperCase() + <span class="string">'"&gt;'</span> + lastMatch + <span class="string">'&lt;/div&gt;'</span></span><br><span class="line"> &#125;)</span><br><span class="line"> &#125;</span><br><span class="line"> <span class="keyword">return</span> data</span><br><span class="line">&#125;)</span><br></pre></td></tr></table></figure></div><h2 id="设置样式文件"><a class="markdownIt-Anchor" href="#设置样式文件"></a> 设置样式文件</h2><p>到source/css/_common/components/highlight/目录下建立一个macPenal.styl文件</p><p>macPenal.styl文件内容如下</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">css</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight css"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br></pre></td><td class="code"><pre><span class="line">// mac Panel效果代码块相关</span><br><span class="line"><span class="selector-class">.highlight-wrap</span><span class="selector-attr">[data-rel]</span> &#123;</span><br><span class="line"> <span class="attribute">position</span>: relative;</span><br><span class="line"> <span class="attribute">overflow</span>: hidden;</span><br><span class="line"> <span class="attribute">border-radius</span>: <span class="number">5px</span>;</span><br><span class="line"> //box-shadow: 0 10px 30px 0px rgba(0, 0, 0, 0.4);</span><br><span class="line"> <span class="selector-tag">box-shadow</span><span class="selector-pseudo">:18px</span> 18<span class="selector-tag">px</span> 15<span class="selector-tag">px</span> 0<span class="selector-tag">px</span> <span class="selector-tag">rgba</span>(0,0,0,<span class="selector-class">.4</span>)</span><br><span class="line"> <span class="selector-tag">margin</span>: 35<span class="selector-tag">px</span> 0;</span><br><span class="line"> <span class="selector-pseudo">::-webkit-scrollbar</span> &#123;</span><br><span class="line"> <span class="attribute">height</span>: <span class="number">10px</span>;</span><br><span class="line"> &#125;</span><br><span class="line"></span><br><span class="line"> <span class="selector-pseudo">::-webkit-scrollbar-track</span> &#123;</span><br><span class="line"> <span class="attribute">-webkit-box-shadow</span>: inset <span class="number">0</span> <span class="number">0</span> <span class="number">6px</span> <span class="built_in">rgba</span>(<span class="number">0</span>, <span class="number">0</span>, <span class="number">0</span>, <span class="number">0.3</span>);</span><br><span class="line"> <span class="attribute">border-radius</span>: <span class="number">10px</span>;</span><br><span class="line"> &#125;</span><br><span class="line"></span><br><span class="line"> <span class="selector-pseudo">::-webkit-scrollbar-thumb</span> &#123;</span><br><span class="line"> <span class="attribute">border-radius</span>: <span class="number">10px</span>;</span><br><span class="line"> <span class="attribute">-webkit-box-shadow</span>: inset <span class="number">0</span> <span class="number">0</span> <span class="number">6px</span> <span class="built_in">rgba</span>(<span class="number">0</span>, <span class="number">0</span>, <span class="number">0</span>, <span class="number">0.5</span>);</span><br><span class="line"> &#125;</span><br><span class="line"> &amp;<span class="selector-pseudo">::before</span> &#123;</span><br><span class="line"> <span class="attribute">color</span>: white;</span><br><span class="line"> <span class="attribute">content</span>: <span class="built_in">attr</span>(data-rel);</span><br><span class="line"> <span class="attribute">height</span>: <span class="number">38px</span>;</span><br><span class="line"> <span class="attribute">line-height</span>: <span class="number">38px</span>;</span><br><span class="line"> //background: #21252b;</span><br><span class="line"> <span class="selector-tag">background</span>: <span class="selector-id">#108414de</span>;</span><br><span class="line"> <span class="selector-tag">color</span>: <span class="selector-id">#fff</span>;</span><br><span class="line"> <span class="selector-tag">font-size</span>: 16<span class="selector-tag">px</span>;</span><br><span class="line"> <span class="selector-tag">position</span>: <span class="selector-tag">absolute</span>;</span><br><span class="line"> <span class="selector-tag">top</span>: 0;</span><br><span class="line"> <span class="selector-tag">left</span>: 0;</span><br><span class="line"> <span class="selector-tag">width</span>: 100%;</span><br><span class="line"> //font-family: 'Source Sans Pro', sans-serif;</span><br><span class="line"> <span class="selector-tag">font-weight</span>: <span class="selector-tag">bold</span>;</span><br><span class="line"> <span class="selector-tag">padding</span>: 0<span class="selector-tag">px</span> 80<span class="selector-tag">px</span>;</span><br><span class="line"> <span class="selector-tag">text-indent</span>: 15<span class="selector-tag">px</span>;</span><br><span class="line"> <span class="selector-tag">float</span>: <span class="selector-tag">left</span>;</span><br><span class="line"> &#125;</span><br><span class="line"> &amp;<span class="selector-pseudo">::after</span> &#123;</span><br><span class="line"> <span class="attribute">content</span>: <span class="string">' '</span>;</span><br><span class="line"> <span class="attribute">position</span>: absolute;</span><br><span class="line"> <span class="attribute">-webkit-border-radius</span>: <span class="number">50%</span>;</span><br><span class="line"> <span class="attribute">border-radius</span>: <span class="number">50%</span>;</span><br><span class="line"> <span class="attribute">background</span>: <span class="number">#fc625d</span>;</span><br><span class="line"> <span class="attribute">width</span>: <span class="number">12px</span>;</span><br><span class="line"> <span class="attribute">height</span>: <span class="number">12px</span>;</span><br><span class="line"> <span class="attribute">top</span>: <span class="number">0</span>;</span><br><span class="line"> <span class="attribute">left</span>: <span class="number">20px</span>;</span><br><span class="line"> <span class="attribute">margin-top</span>: <span class="number">13px</span>;</span><br><span class="line"> <span class="attribute">-webkit-box-shadow</span>: <span class="number">20px</span> <span class="number">0px</span> <span class="number">#fdbc40</span>, <span class="number">40px</span> <span class="number">0px</span> <span class="number">#35cd4b</span>;</span><br><span class="line"> <span class="attribute">box-shadow</span>: <span class="number">20px</span> <span class="number">0px</span> <span class="number">#fdbc40</span>, <span class="number">40px</span> <span class="number">0px</span> <span class="number">#35cd4b</span>;</span><br><span class="line"> <span class="attribute">z-index</span>: <span class="number">3</span>;</span><br><span class="line"> &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></div><p>再到highlight.styl文件中引入新建的macPenal.styl</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">css</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight css"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"> <span class="keyword">@require</span> <span class="string">"theme"</span></span><br><span class="line"> @require <span class="string">"diff"</span></span><br><span class="line">+ @require <span class="string">"macPanel"</span></span><br></pre></td></tr></table></figure></div><p>到此,不出意外,代码块样式应该已经出来了。<br>如果样式出来了,但代码未显示出来,那说明代码是被遮盖了,调一下样式就能出来了。</p><h1 id="样式调试"><a class="markdownIt-Anchor" href="#样式调试"></a> 样式调试</h1><p>经过上述一系列操作,macPenal效果成功出现但样式有些不对(不好看)。<br>修改/nextlayout/_third-party/copy-code.swig<br>内容为</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">css</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight css"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"><span class="selector-class">.highlight-wrap</span> <span class="selector-class">.copy-btn</span> &#123;</span><br><span class="line"> <span class="attribute">transition</span>: opacity .<span class="number">3s</span> ease-in-out;</span><br><span class="line"> <span class="attribute">opacity</span>: <span class="number">0</span>;</span><br><span class="line"> <span class="attribute">padding</span>: <span class="number">2px</span> <span class="number">6px</span>;</span><br><span class="line"> <span class="attribute">position</span>: absolute;</span><br><span class="line"> <span class="attribute">right</span>: <span class="number">5px</span>;</span><br><span class="line">- top: 8px;</span><br><span class="line">+ <span class="selector-tag">top</span>: <span class="selector-tag">-31px</span>;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></div><p>修改next/source/css/_common/component/highlight下的highlight.styl内容为</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">css</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight css"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">$code-block &#123;</span><br><span class="line"> <span class="selector-tag">overflow</span>: <span class="selector-tag">auto</span>;</span><br><span class="line">+ <span class="selector-tag">margin</span>: 36<span class="selector-tag">px</span> 0<span class="selector-tag">px</span> 0<span class="selector-tag">px</span>;</span><br><span class="line"><span class="selector-tag">-</span> <span class="selector-tag">margin</span>: 36<span class="selector-tag">px</span> 0<span class="selector-tag">px</span>;</span><br><span class="line"> <span class="selector-tag">padding</span>: 0;</span><br><span class="line"> font-size $code-font-size;</span><br><span class="line"> color: $highlight-foreground;</span><br><span class="line"> background: $highlight-background;</span><br><span class="line"> line-height: $line-height-code-block;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></div><p>最后到主题的config.yml文件下修改highlight_theme为normal</p><p><code>highlight_theme: normal</code></p><blockquote><p>本主题为:<s>hexo next 6.4.2 mist</s> 已换为Matery</p></blockquote>]]></content>
<categories>
<category> 学习 </category>
<category> 折腾 </category>
</categories>
<tags>
<tag> hexo </tag>
<tag> blog </tag>
<tag> 美化 </tag>
<tag> 折腾 </tag>
</tags>
</entry>
<entry>
<title>hexo文章外链模仿知乎卡片式链接</title>
<link href="/post/2802a56.html"/>
<url>/post/2802a56.html</url>
<content type="html"><![CDATA[<h2 id="背景"><a class="markdownIt-Anchor" href="#背景"></a> 背景</h2><p>逛知乎时看见知乎上的卡片式分享链接,挺吸引我的,所谓不折腾不死,<a id="more"></a>我这样一个不会自己研究又想实现的人,遂寻求谷歌大法解决,最后让我找着了。以下便是实现的过程。</p><h3 id="第一步新建"><a class="markdownIt-Anchor" href="#第一步新建"></a> 第一步:新建</h3><p>首先在主题目录下,在next/source/css/js/下新建一个linkcard.js文件,并写入如下内容:</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">Javascript</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">window</span>.onload=<span class="function"><span class="keyword">function</span>(<span class="params"></span>)</span>&#123;</span><br><span class="line"><span class="keyword">var</span> LinkCards=<span class="built_in">document</span>.getElementsByClassName(<span class="string">'LinkCard'</span>);</span><br><span class="line"><span class="keyword">if</span>(LinkCards.length != <span class="number">0</span>)&#123;</span><br><span class="line"><span class="keyword">var</span> LinkCard=LinkCards[<span class="number">0</span>];</span><br><span class="line"><span class="keyword">var</span> link=LinkCard.href;</span><br><span class="line"><span class="keyword">var</span> title=LinkCard.innerText;</span><br><span class="line">LinkCard.innerHTML=<span class="string">"&lt;style type=text/css&gt;.LinkCard,.LinkCard:hover&#123;text-decoration:none;border:none!important;color:inherit!important&#125;.LinkCard&#123;position:relative;display:block;margin:1em auto;width:390px;box-sizing:border-box;border-radius:12px;max-width:100%;overflow:hidden;color:inherit;text-decoration:none&#125;.ztext&#123;word-break:break-word;line-height:1.6&#125;.LinkCard-backdrop&#123;position:absolute;top:0;left:0;right:0;bottom:0;background-repeat:no-repeat;-webkit-filter:blur(20px);filter:blur(20px);background-size:cover;background-position:center&#125;.LinkCard,.LinkCard:hover&#123;text-decoration:none;border:none!important;color:inherit!important&#125;.LinkCard-content&#123;position:relative;display:flex;align-items:center;justify-content:space-between;padding:12px;border-radius:inherit;background-color:rgba(246,246,246,0.88)&#125;.LinkCard-text&#123;overflow:hidden&#125;.LinkCard-title&#123;display:-webkit-box;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;max-height:calc(16px * 1.25 * 2);font-size:16px;font-weight:500;line-height:1.25;color:#1a1a1a&#125;.LinkCard-meta&#123;display:flex;margin-top:4px;font-size:14px;line-height:20px;color:#999;white-space:nowrap&#125;.LinkCard-imageCell&#123;margin-left:8px;border-radius:6px&#125;.LinkCard-image&#123;display:block;width:60px;height:auto;border-radius:inherit;margin-bottom:0!important&#125;&lt;/style&gt;&lt;span class=LinkCard-backdrop style=background-image:url(/images/logo.svg)&gt;&lt;/span&gt;&lt;span class=LinkCard-content&gt;&lt;span class=LinkCard-text&gt;&lt;span class=LinkCard-title&gt;"</span>+title+<span class="string">"&lt;/span&gt;&lt;span class=LinkCard-meta&gt;&lt;span style=display:inline-flex;align-items:center&gt;&lt;svg class="</span>+<span class="string">"'Zi Zi--InsertLink'"</span>+<span class="string">" fill=currentColor viewBox="</span>+<span class="string">"'0 0 24 24'"</span>+<span class="string">" width=17 height=17&gt;&lt;path d="</span>+<span class="string">"'M6.77 17.23c-.905-.904-.94-2.333-.08-3.193l3.059-3.06-1.192-1.19-3.059 3.058c-1.489 1.489-1.427 3.954.138 5.519s4.03 1.627 5.519.138l3.059-3.059-1.192-1.192-3.059 3.06c-.86.86-2.289.824-3.193-.08zm3.016-8.673l1.192 1.192 3.059-3.06c.86-.86 2.289-.824 3.193.08.905.905.94 2.334.08 3.194l-3.059 3.06 1.192 1.19 3.059-3.058c1.489-1.489 1.427-3.954-.138-5.519s-4.03-1.627-5.519-.138L9.786 8.557zm-1.023 6.68c.33.33.863.343 1.177.029l5.34-5.34c.314-.314.3-.846-.03-1.176-.33-.33-.862-.344-1.176-.03l-5.34 5.34c-.314.314-.3.846.03 1.177z'"</span>+<span class="string">" fill-rule=evenodd&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;"</span>+link+<span class="string">"&lt;/span&gt;&lt;/span&gt;&lt;span class=LinkCard-imageCell&gt;&lt;img class=LinkCard-image alt=logo src=/images/logo.svg&gt;&lt;/span&gt;&lt;/span&gt;"</span>;</span><br><span class="line"></span><br><span class="line"><span class="keyword">for</span> (<span class="keyword">var</span> i = LinkCards.length - <span class="number">1</span>; i &gt;= <span class="number">1</span>; i--) &#123;</span><br><span class="line">LinkCard=LinkCards[i];</span><br><span class="line">title=LinkCard.innerText;</span><br><span class="line">link=LinkCard.href;</span><br><span class="line">LinkCard.innerHTML=<span class="string">"&lt;span class=LinkCard-backdrop style=background-image:url(/images/logo.svg)&gt;&lt;/span&gt;&lt;span class=LinkCard-content&gt;&lt;span class=LinkCard-text&gt;&lt;span class=LinkCard-title&gt;"</span>+title+<span class="string">"&lt;/span&gt;&lt;span class=LinkCard-meta&gt;&lt;span style=display:inline-flex;align-items:center&gt;&lt;svg class="</span>+<span class="string">"'Zi Zi--InsertLink'"</span>+<span class="string">" fill=currentColor viewBox="</span>+<span class="string">"'0 0 24 24'"</span>+<span class="string">" width=17 height=17&gt;&lt;path d="</span>+<span class="string">"'M6.77 17.23c-.905-.904-.94-2.333-.08-3.193l3.059-3.06-1.192-1.19-3.059 3.058c-1.489 1.489-1.427 3.954.138 5.519s4.03 1.627 5.519.138l3.059-3.059-1.192-1.192-3.059 3.06c-.86.86-2.289.824-3.193-.08zm3.016-8.673l1.192 1.192 3.059-3.06c.86-.86 2.289-.824 3.193.08.905.905.94 2.334.08 3.194l-3.059 3.06 1.192 1.19 3.059-3.058c1.489-1.489 1.427-3.954-.138-5.519s-4.03-1.627-5.519-.138L9.786 8.557zm-1.023 6.68c.33.33.863.343 1.177.029l5.34-5.34c.314-.314.3-.846-.03-1.176-.33-.33-.862-.344-1.176-.03l-5.34 5.34c-.314.314-.3.846.03 1.177z'"</span>+<span class="string">" fill-rule=evenodd&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;"</span>+link+<span class="string">"&lt;/span&gt;&lt;/span&gt;&lt;span class=LinkCard-imageCell&gt;&lt;img class=LinkCard-image alt=logo src=/images/logo.svg&gt;&lt;/span&gt;&lt;/span&gt;"</span>;</span><br><span class="line">&#125;</span><br><span class="line">&#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></div><p>然后在next/layout/_layout.swig文件中引入linkcard.js</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">Code</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line"> &#123;% include &#39;_third-party&#x2F;rating.swig&#39; %&#125;</span><br><span class="line"> &#123;% include &#39;_third-party&#x2F;pangu.swig&#39; %&#125;</span><br><span class="line"> &#123;% include &#39;_third-party&#x2F;scroll-cookie.swig&#39; %&#125;</span><br><span class="line"> &#123;% include &#39;_third-party&#x2F;bookmark.swig&#39; %&#125;</span><br><span class="line"> &#123;% include &#39;_third-party&#x2F;copy-code.swig&#39; %&#125;</span><br><span class="line"> &#123;% include &#39;_custom&#x2F;custom.swig&#39; %&#125;</span><br><span class="line">+ &lt;script type&#x3D;&quot;text&#x2F;javascript&quot; src&#x3D;&quot;&#x2F;js&#x2F;linkcard.js&quot;&gt;&lt;&#x2F;script&gt;</span><br><span class="line">&lt;&#x2F;body&gt;</span><br></pre></td></tr></table></figure></div><h3 id="第二步使用"><a class="markdownIt-Anchor" href="#第二步使用"></a> 第二步:使用</h3><p>其中需要注意的是linkcard.js文件中有两个图片链接<code>&lt;span class=LinkCard-backdrop style=background-image:url(/images/logo.svg)&gt;&lt;/span&gt;</code>以及<code>&lt;span class=LinkCard-imageCell&gt;&lt;img class=LinkCard-image alt=logo src=/images/logo.svg&gt;&lt;/span&gt;</code>前者是卡片的背景,后者是卡片右侧的logo。</p><p>然后使用的话,很简单,只要在引用链接的时候在markdown中以如下格式书写链接就可以:</p><p><a href="https://52chang.wang" target="_blank" rel="noopener" class="LinkCard">长弓不是弓长</a></p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">html</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"http://52chang.wang"</span> <span class="attr">class</span>=<span class="string">"LinkCard"</span>&gt;</span>长弓不是弓长<span class="tag">&lt;/<span class="name">a</span>&gt;</span></span><br></pre></td></tr></table></figure></div>]]></content>
<categories>
<category> 学习 </category>
<category> 折腾 </category>
</categories>
<tags>
<tag> hexo </tag>
<tag> blog </tag>
<tag> 卡片链接 </tag>
</tags>
</entry>
<entry>
<title>光电检测技术及应用-笔记</title>
<link href="/post/75dcaaae.html"/>
<url>/post/75dcaaae.html</url>
<content type="html"><![CDATA[<h1 id="概念"><a class="markdownIt-Anchor" href="#概念"></a> 概念</h1><ol><li>光电检测技术:采用不同的手段获取信息,运用光电技术的方法来检验与处理信息,从而实现各种物理量和几何量的测量。<a id="more"></a></li><li>光电系统的组成:辐射源–&gt;光学系统–&gt;光电系统–&gt;电子学系统–&gt;计算机系统</li></ol><h2 id="定义"><a class="markdownIt-Anchor" href="#定义"></a> 定义</h2><h3 id="辐射度量"><a class="markdownIt-Anchor" href="#辐射度量"></a> 辐射度量</h3><ol><li>辐射能(<span class="katex"><span class="katex-mathml"><math><semantics><mrow><msub><mi>Q</mi><mi>e</mi></msub></mrow><annotation encoding="application/x-tex">Q_e</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8777699999999999em;vertical-align:-0.19444em;"></span><span class="mord"><span class="mord mathdefault">Q</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.151392em;"><span style="top:-2.5500000000000003em;margin-left:0em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mathdefault mtight">e</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span>):以辐射的形式发射、传播式吸收的能量,焦耳(J)。</li><li>辐射通量(<span class="katex"><span class="katex-mathml"><math><semantics><mrow><msub><mi mathvariant="normal">Φ</mi><mi>e</mi></msub></mrow><annotation encoding="application/x-tex">\Phi_e</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.83333em;vertical-align:-0.15em;"></span><span class="mord"><span class="mord">Φ</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.151392em;"><span style="top:-2.5500000000000003em;margin-left:0em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mathdefault mtight">e</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span>):单位时间内通过某截面的所有波长的总辐射,又称辐射功率(W)。</li><li>辐射强度(<span class="katex"><span class="katex-mathml"><math><semantics><mrow><msub><mi>I</mi><mi>e</mi></msub></mrow><annotation encoding="application/x-tex">I_e</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.83333em;vertical-align:-0.15em;"></span><span class="mord"><span class="mord mathdefault" style="margin-right:0.07847em;">I</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.151392em;"><span style="top:-2.5500000000000003em;margin-left:-0.07847em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mathdefault mtight">e</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span>):在给定方向上的立体角元内,辐射源发出的辐射通量与立体角元之比。<span class="katex"><span class="katex-mathml"><math><semantics><mrow><msub><mi mathvariant="normal">Ⅰ</mi><mi>e</mi></msub><mo stretchy="false">(</mo><mi>θ</mi><mo separator="true">,</mo><mi>φ</mi><mo stretchy="false">)</mo><mo>=</mo><mfrac><mrow><mi>d</mi><msub><mi mathvariant="normal">Φ</mi><mi>e</mi></msub></mrow><mrow><mi>d</mi><mi mathvariant="normal">Ω</mi></mrow></mfrac></mrow><annotation encoding="application/x-tex">Ⅰ_e(\theta,\varphi)=\frac{d\Phi_e}{d\Omega}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord"><span class="mord">Ⅰ</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.151392em;"><span style="top:-2.5500000000000003em;margin-left:0em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mathdefault mtight">e</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span><span class="mopen">(</span><span class="mord mathdefault" style="margin-right:0.02778em;">θ</span><span class="mpunct">,</span><span class="mspace" style="margin-right:0.16666666666666666em;"></span><span class="mord mathdefault">φ</span><span class="mclose">)</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span></span><span class="base"><span class="strut" style="height:1.2412079999999999em;vertical-align:-0.345em;"></span><span class="mord"><span class="mopen nulldelimiter"></span><span class="mfrac"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.8962079999999999em;"><span style="top:-2.6550000000000002em;"><span class="pstrut" style="height:3em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathdefault mtight">d</span><span class="mord mtight">Ω</span></span></span></span><span style="top:-3.23em;"><span class="pstrut" style="height:3em;"></span><span class="frac-line" style="border-bottom-width:0.04em;"></span></span><span style="top:-3.4101em;"><span class="pstrut" style="height:3em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathdefault mtight">d</span><span class="mord mtight"><span class="mord mtight">Φ</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.16454285714285719em;"><span style="top:-2.357em;margin-left:0em;margin-right:0.07142857142857144em;"><span class="pstrut" style="height:2.5em;"></span><span class="sizing reset-size3 size1 mtight"><span class="mord mathdefault mtight">e</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.143em;"><span></span></span></span></span></span></span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.345em;"><span></span></span></span></span></span><span class="mclose nulldelimiter"></span></span></span></span></span> 单位:<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>W</mi><mi mathvariant="normal">/</mi><mi>s</mi><mi>r</mi></mrow><annotation encoding="application/x-tex">W/sr</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord mathdefault" style="margin-right:0.13889em;">W</span><span class="mord">/</span><span class="mord mathdefault">s</span><span class="mord mathdefault" style="margin-right:0.02778em;">r</span></span></span></span></li><li>辐射出度(<span class="katex"><span class="katex-mathml"><math><semantics><mrow><msub><mi>M</mi><mi>e</mi></msub></mrow><annotation encoding="application/x-tex">M_e</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.83333em;vertical-align:-0.15em;"></span><span class="mord"><span class="mord mathdefault" style="margin-right:0.10903em;">M</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.151392em;"><span style="top:-2.5500000000000003em;margin-left:-0.10903em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mathdefault mtight">e</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span>):单位面元发出的辐射通量。<span class="katex"><span class="katex-mathml"><math><semantics><mrow><msub><mi>M</mi><mi>e</mi></msub><mo>=</mo><mfrac><mrow><mi>d</mi><msub><mi mathvariant="normal">Φ</mi><mi>e</mi></msub></mrow><mrow><mi>d</mi><mi>S</mi></mrow></mfrac></mrow><annotation encoding="application/x-tex">M_e=\frac{d\Phi_e}{dS}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.83333em;vertical-align:-0.15em;"></span><span class="mord"><span class="mord mathdefault" style="margin-right:0.10903em;">M</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.151392em;"><span style="top:-2.5500000000000003em;margin-left:-0.10903em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mathdefault mtight">e</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span></span><span class="base"><span class="strut" style="height:1.2412079999999999em;vertical-align:-0.345em;"></span><span class="mord"><span class="mopen nulldelimiter"></span><span class="mfrac"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.8962079999999999em;"><span style="top:-2.6550000000000002em;"><span class="pstrut" style="height:3em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathdefault mtight">d</span><span class="mord mathdefault mtight" style="margin-right:0.05764em;">S</span></span></span></span><span style="top:-3.23em;"><span class="pstrut" style="height:3em;"></span><span class="frac-line" style="border-bottom-width:0.04em;"></span></span><span style="top:-3.4101em;"><span class="pstrut" style="height:3em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathdefault mtight">d</span><span class="mord mtight"><span class="mord mtight">Φ</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.16454285714285719em;"><span style="top:-2.357em;margin-left:0em;margin-right:0.07142857142857144em;"><span class="pstrut" style="height:2.5em;"></span><span class="sizing reset-size3 size1 mtight"><span class="mord mathdefault mtight">e</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.143em;"><span></span></span></span></span></span></span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.345em;"><span></span></span></span></span></span><span class="mclose nulldelimiter"></span></span></span></span></span></li><li>辐射亮度(<span class="katex"><span class="katex-mathml"><math><semantics><mrow><msub><mi>L</mi><mi>e</mi></msub></mrow><annotation encoding="application/x-tex">L_e</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.83333em;vertical-align:-0.15em;"></span><span class="mord"><span class="mord mathdefault">L</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.151392em;"><span style="top:-2.5500000000000003em;margin-left:0em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mathdefault mtight">e</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span>):垂直其辐射方向上单位表面积、单位立体角发出的辐射通量。<span class="katex"><span class="katex-mathml"><math><semantics><mrow><msub><mi>L</mi><mi>e</mi></msub><mo stretchy="false">(</mo><mi>θ</mi><mo separator="true">,</mo><mi>φ</mi><mo stretchy="false">)</mo><mo>=</mo><mfrac><mrow><msup><mi>d</mi><mn>2</mn></msup><msub><mi mathvariant="normal">Φ</mi><mi>e</mi></msub></mrow><mrow><mi>d</mi><mi mathvariant="normal">Ω</mi><mo separator="true">⋅</mo><mi>d</mi><mi>S</mi><mi>c</mi><mi>o</mi><mi>s</mi><mi>θ</mi></mrow></mfrac><mo>=</mo><mfrac><mrow><mi>d</mi><msub><mi>I</mi><mi>e</mi></msub></mrow><mrow><mi>d</mi><mi>S</mi><mi>c</mi><mi>o</mi><mi>s</mi><mi>θ</mi></mrow></mfrac></mrow><annotation encoding="application/x-tex">L_e(\theta,\varphi)=\frac{d^2\Phi_e}{d{\Omega}·dScos\theta}=\frac{dI_e}{dScos\theta}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord"><span class="mord mathdefault">L</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.151392em;"><span style="top:-2.5500000000000003em;margin-left:0em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mathdefault mtight">e</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span><span class="mopen">(</span><span class="mord mathdefault" style="margin-right:0.02778em;">θ</span><span class="mpunct">,</span><span class="mspace" style="margin-right:0.16666666666666666em;"></span><span class="mord mathdefault">φ</span><span class="mclose">)</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span></span><span class="base"><span class="strut" style="height:1.37902em;vertical-align:-0.345em;"></span><span class="mord"><span class="mopen nulldelimiter"></span><span class="mfrac"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:1.03402em;"><span style="top:-2.6550000000000002em;"><span class="pstrut" style="height:3em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathdefault mtight">d</span><span class="mord mtight"><span class="mord mtight">Ω</span></span><span class="mpunct mtight">⋅</span><span class="mord mathdefault mtight">d</span><span class="mord mathdefault mtight" style="margin-right:0.05764em;">S</span><span class="mord mathdefault mtight">c</span><span class="mord mathdefault mtight">o</span><span class="mord mathdefault mtight">s</span><span class="mord mathdefault mtight" style="margin-right:0.02778em;">θ</span></span></span></span><span style="top:-3.23em;"><span class="pstrut" style="height:3em;"></span><span class="frac-line" style="border-bottom-width:0.04em;"></span></span><span style="top:-3.4101em;"><span class="pstrut" style="height:3em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight"><span class="mord mathdefault mtight">d</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.8913142857142857em;"><span style="top:-2.931em;margin-right:0.07142857142857144em;"><span class="pstrut" style="height:2.5em;"></span><span class="sizing reset-size3 size1 mtight"><span class="mord mtight">2</span></span></span></span></span></span></span></span><span class="mord mtight"><span class="mord mtight">Φ</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.16454285714285719em;"><span style="top:-2.357em;margin-left:0em;margin-right:0.07142857142857144em;"><span class="pstrut" style="height:2.5em;"></span><span class="sizing reset-size3 size1 mtight"><span class="mord mathdefault mtight">e</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.143em;"><span></span></span></span></span></span></span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.345em;"><span></span></span></span></span></span><span class="mclose nulldelimiter"></span></span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span></span><span class="base"><span class="strut" style="height:1.2412079999999999em;vertical-align:-0.345em;"></span><span class="mord"><span class="mopen nulldelimiter"></span><span class="mfrac"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.8962079999999999em;"><span style="top:-2.6550000000000002em;"><span class="pstrut" style="height:3em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathdefault mtight">d</span><span class="mord mathdefault mtight" style="margin-right:0.05764em;">S</span><span class="mord mathdefault mtight">c</span><span class="mord mathdefault mtight">o</span><span class="mord mathdefault mtight">s</span><span class="mord mathdefault mtight" style="margin-right:0.02778em;">θ</span></span></span></span><span style="top:-3.23em;"><span class="pstrut" style="height:3em;"></span><span class="frac-line" style="border-bottom-width:0.04em;"></span></span><span style="top:-3.4101em;"><span class="pstrut" style="height:3em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathdefault mtight">d</span><span class="mord mtight"><span class="mord mathdefault mtight" style="margin-right:0.07847em;">I</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.16454285714285719em;"><span style="top:-2.357em;margin-left:-0.07847em;margin-right:0.07142857142857144em;"><span class="pstrut" style="height:2.5em;"></span><span class="sizing reset-size3 size1 mtight"><span class="mord mathdefault mtight">e</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.143em;"><span></span></span></span></span></span></span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.345em;"><span></span></span></span></span></span><span class="mclose nulldelimiter"></span></span></span></span></span> 单位:<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>W</mi><mi mathvariant="normal">/</mi><mo stretchy="false">(</mo><mi>s</mi><mi>r</mi><mo separator="true">⋅</mo><msup><mi>m</mi><mn>2</mn></msup><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">W/(sr·m^2)</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.064108em;vertical-align:-0.25em;"></span><span class="mord mathdefault" style="margin-right:0.13889em;">W</span><span class="mord">/</span><span class="mopen">(</span><span class="mord mathdefault">s</span><span class="mord mathdefault" style="margin-right:0.02778em;">r</span><span class="mpunct">⋅</span><span class="mspace" style="margin-right:0.16666666666666666em;"></span><span class="mord"><span class="mord mathdefault">m</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.8141079999999999em;"><span style="top:-3.063em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight">2</span></span></span></span></span></span></span></span><span class="mclose">)</span></span></span></span></li><li>辐射照度(<span class="katex"><span class="katex-mathml"><math><semantics><mrow><msub><mi>E</mi><mi>e</mi></msub></mrow><annotation encoding="application/x-tex">E_e</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.83333em;vertical-align:-0.15em;"></span><span class="mord"><span class="mord mathdefault" style="margin-right:0.05764em;">E</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.151392em;"><span style="top:-2.5500000000000003em;margin-left:-0.05764em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mathdefault mtight">e</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span>):辐射接收面上单位面积接收的辐射通量。<span class="katex"><span class="katex-mathml"><math><semantics><mrow><msub><mi>E</mi><mi>e</mi></msub><mo>=</mo><mfrac><mrow><mi>d</mi><msubsup><mi mathvariant="normal">Φ</mi><mi>e</mi><msup><mrow></mrow><mo mathvariant="normal">′</mo></msup></msubsup></mrow><mrow><mi>d</mi><msup><mi>S</mi><msup><mrow></mrow><mo mathvariant="normal">′</mo></msup></msup></mrow></mfrac></mrow><annotation encoding="application/x-tex">E_e=\frac{d\Phi_e^{&#x27;}}{dS^{&#x27;}}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.83333em;vertical-align:-0.15em;"></span><span class="mord"><span class="mord mathdefault" style="margin-right:0.05764em;">E</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.151392em;"><span style="top:-2.5500000000000003em;margin-left:-0.05764em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mathdefault mtight">e</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span></span><span class="base"><span class="strut" style="height:1.7266599999999999em;vertical-align:-0.43498em;"></span><span class="mord"><span class="mopen nulldelimiter"></span><span class="mfrac"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:1.29168em;"><span style="top:-2.56502em;"><span class="pstrut" style="height:3em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathdefault mtight">d</span><span class="mord mtight"><span class="mord mathdefault mtight" style="margin-right:0.05764em;">S</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.8928285714285715em;"><span style="top:-2.8928285714285713em;margin-right:0.07142857142857144em;"><span class="pstrut" style="height:2.6068285714285713em;"></span><span class="sizing reset-size3 size1 mtight"><span class="mord mtight"><span class="mord mtight"><span></span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.8495600000000001em;"><span style="top:-2.84956em;margin-right:0.1em;"><span class="pstrut" style="height:2.55556em;"></span><span class="mord mtight"><span class="mord mtight">′</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span style="top:-3.23em;"><span class="pstrut" style="height:3em;"></span><span class="frac-line" style="border-bottom-width:0.04em;"></span></span><span style="top:-3.5102em;"><span class="pstrut" style="height:3em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathdefault mtight">d</span><span class="mord mtight"><span class="mord mtight">Φ</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:1.1164em;"><span style="top:-2.3994em;margin-left:0em;margin-right:0.07142857142857144em;"><span class="pstrut" style="height:2.6854em;"></span><span class="sizing reset-size3 size1 mtight"><span class="mord mathdefault mtight">e</span></span></span><span style="top:-3.1164em;margin-right:0.07142857142857144em;"><span class="pstrut" style="height:2.6854em;"></span><span class="sizing reset-size3 size1 mtight"><span class="mord mtight"><span class="mord mtight"><span></span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.9595600000000001em;"><span style="top:-2.9595599999999997em;margin-right:0.1em;"><span class="pstrut" style="height:2.55556em;"></span><span class="mord mtight"><span class="mord mtight">′</span></span></span></span></span></span></span></span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.286em;"><span></span></span></span></span></span></span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.43498em;"><span></span></span></span></span></span><span class="mclose nulldelimiter"></span></span></span></span></span> 单位:<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>W</mi><mi mathvariant="normal">/</mi><msup><mi>m</mi><mn>2</mn></msup></mrow><annotation encoding="application/x-tex">W/m^2</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.064108em;vertical-align:-0.25em;"></span><span class="mord mathdefault" style="margin-right:0.13889em;">W</span><span class="mord">/</span><span class="mord"><span class="mord mathdefault">m</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.8141079999999999em;"><span style="top:-3.063em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight">2</span></span></span></span></span></span></span></span></span></span></span></li><li>光谱辐射量(<span class="katex"><span class="katex-mathml"><math><semantics><mrow><msub><mi mathvariant="normal">Φ</mi><mi>e</mi></msub><mo stretchy="false">(</mo><mi>λ</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">\Phi_e(\lambda)</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord"><span class="mord">Φ</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.151392em;"><span style="top:-2.5500000000000003em;margin-left:0em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mathdefault mtight">e</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span><span class="mopen">(</span><span class="mord mathdefault">λ</span><span class="mclose">)</span></span></span></span>):辐射量在波长<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>λ</mi></mrow><annotation encoding="application/x-tex">\lambda</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.69444em;vertical-align:0em;"></span><span class="mord mathdefault">λ</span></span></span></span>处、单位波长间隔内的大小,又称辐射量的光谱密度,是辐射量随波长的变化率。<span class="katex"><span class="katex-mathml"><math><semantics><mrow><msub><mi mathvariant="normal">Φ</mi><mi>e</mi></msub><mo stretchy="false">(</mo><mi>λ</mi><mo stretchy="false">)</mo><mo>=</mo><mfrac><mrow><mi>d</mi><msub><mi mathvariant="normal">Φ</mi><mi>e</mi></msub></mrow><mrow><mi>d</mi><mi>λ</mi></mrow></mfrac></mrow><annotation encoding="application/x-tex">\Phi_e(\lambda)=\frac{d\Phi_e}{d\lambda}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord"><span class="mord">Φ</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.151392em;"><span style="top:-2.5500000000000003em;margin-left:0em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mathdefault mtight">e</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span><span class="mopen">(</span><span class="mord mathdefault">λ</span><span class="mclose">)</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span></span><span class="base"><span class="strut" style="height:1.2412079999999999em;vertical-align:-0.345em;"></span><span class="mord"><span class="mopen nulldelimiter"></span><span class="mfrac"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.8962079999999999em;"><span style="top:-2.6550000000000002em;"><span class="pstrut" style="height:3em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathdefault mtight">d</span><span class="mord mathdefault mtight">λ</span></span></span></span><span style="top:-3.23em;"><span class="pstrut" style="height:3em;"></span><span class="frac-line" style="border-bottom-width:0.04em;"></span></span><span style="top:-3.4101em;"><span class="pstrut" style="height:3em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathdefault mtight">d</span><span class="mord mtight"><span class="mord mtight">Φ</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.16454285714285719em;"><span style="top:-2.357em;margin-left:0em;margin-right:0.07142857142857144em;"><span class="pstrut" style="height:2.5em;"></span><span class="sizing reset-size3 size1 mtight"><span class="mord mathdefault mtight">e</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.143em;"><span></span></span></span></span></span></span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.345em;"><span></span></span></span></span></span><span class="mclose nulldelimiter"></span></span></span></span></span></li></ol><h3 id="光度量"><a class="markdownIt-Anchor" href="#光度量"></a> 光度量</h3><blockquote><p>光度量=辐射度量×视觉函数</p></blockquote><ol><li>光通量( <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">Φ</mi></mrow><annotation encoding="application/x-tex">\Phi</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.68333em;vertical-align:0em;"></span><span class="mord">Φ</span></span></span></span> ): 光辐射通量对人眼所引起的视觉强度值。单位:流明(lm)</li><li>发光强度( <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">Ⅰ</mi></mrow><annotation encoding="application/x-tex">Ⅰ</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0em;vertical-align:0em;"></span><span class="mord">Ⅰ</span></span></span></span> ):光源在给定方向上单位立体角内所出的光通量。单位:坎德拉(cd)</li><li>发光出度(<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>M</mi></mrow><annotation encoding="application/x-tex">M</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.68333em;vertical-align:0em;"></span><span class="mord mathdefault" style="margin-right:0.10903em;">M</span></span></span></span>):光源表面给定点处单位面积向半空间内所发出的光通量。单位:流明每平方米(<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>l</mi><mi>m</mi><mi mathvariant="normal">/</mi><msup><mi>m</mi><mn>2</mn></msup></mrow><annotation encoding="application/x-tex">lm/m^2</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.064108em;vertical-align:-0.25em;"></span><span class="mord mathdefault" style="margin-right:0.01968em;">l</span><span class="mord mathdefault">m</span><span class="mord">/</span><span class="mord"><span class="mord mathdefault">m</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.8141079999999999em;"><span style="top:-3.063em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight">2</span></span></span></span></span></span></span></span></span></span></span>)</li><li>光照度(<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>E</mi></mrow><annotation encoding="application/x-tex">E</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.68333em;vertical-align:0em;"></span><span class="mord mathdefault" style="margin-right:0.05764em;">E</span></span></span></span>):被照明物体给定点处单位面积上的入射光通量。单位:勒克斯(<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>l</mi><mi>x</mi></mrow><annotation encoding="application/x-tex">lx</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.69444em;vertical-align:0em;"></span><span class="mord mathdefault" style="margin-right:0.01968em;">l</span><span class="mord mathdefault">x</span></span></span></span>)</li></ol><table><thead><tr><th style="text-align:center">度量名称</th><th style="text-align:center">符号</th><th style="text-align:center">定义式</th><th style="text-align:center">单位</th><th style="text-align:center">单位符号</th></tr></thead><tbody><tr><td style="text-align:center">光通量</td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">Φ</mi></mrow><annotation encoding="application/x-tex">\Phi</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.68333em;vertical-align:0em;"></span><span class="mord">Φ</span></span></span></span></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><msub><mi>K</mi><mi>m</mi></msub><msub><mo>∫</mo><mi>λ</mi></msub><msub><mi mathvariant="normal">Φ</mi><mrow><mi>e</mi><mo separator="true">,</mo><mi>λ</mi></mrow></msub><mi>V</mi><mo stretchy="false">(</mo><mi>λ</mi><mo stretchy="false">)</mo><mi>d</mi><mi>λ</mi></mrow><annotation encoding="application/x-tex">K_m\int_{\lambda}\Phi_{e,\lambda}V(\lambda)d\lambda</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.1608200000000002em;vertical-align:-0.35582em;"></span><span class="mord"><span class="mord mathdefault" style="margin-right:0.07153em;">K</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.151392em;"><span style="top:-2.5500000000000003em;margin-left:-0.07153em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mathdefault mtight">m</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.16666666666666666em;"></span><span class="mop"><span class="mop op-symbol small-op" style="margin-right:0.19445em;position:relative;top:-0.0005599999999999772em;">∫</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.1302879999999999em;"><span style="top:-2.34418em;margin-left:-0.19445em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathdefault mtight">λ</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.35582em;"><span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.16666666666666666em;"></span><span class="mord"><span class="mord">Φ</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.3361079999999999em;"><span style="top:-2.5500000000000003em;margin-left:0em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathdefault mtight">e</span><span class="mpunct mtight">,</span><span class="mord mathdefault mtight">λ</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.286108em;"><span></span></span></span></span></span></span><span class="mord mathdefault" style="margin-right:0.22222em;">V</span><span class="mopen">(</span><span class="mord mathdefault">λ</span><span class="mclose">)</span><span class="mord mathdefault">d</span><span class="mord mathdefault">λ</span></span></span></span></td><td style="text-align:center">流明</td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>l</mi><mi>m</mi></mrow><annotation encoding="application/x-tex">lm</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.69444em;vertical-align:0em;"></span><span class="mord mathdefault" style="margin-right:0.01968em;">l</span><span class="mord mathdefault">m</span></span></span></span></td></tr><tr><td style="text-align:center">光照射度</td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>M</mi></mrow><annotation encoding="application/x-tex">M</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.68333em;vertical-align:0em;"></span><span class="mord mathdefault" style="margin-right:0.10903em;">M</span></span></span></span></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mfrac><mrow><mi>d</mi><mi mathvariant="normal">Φ</mi></mrow><mrow><mi>d</mi><mi>A</mi></mrow></mfrac></mrow><annotation encoding="application/x-tex">\frac{d\Phi}{dA}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.2251079999999999em;vertical-align:-0.345em;"></span><span class="mord"><span class="mopen nulldelimiter"></span><span class="mfrac"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.8801079999999999em;"><span style="top:-2.6550000000000002em;"><span class="pstrut" style="height:3em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathdefault mtight">d</span><span class="mord mathdefault mtight">A</span></span></span></span><span style="top:-3.23em;"><span class="pstrut" style="height:3em;"></span><span class="frac-line" style="border-bottom-width:0.04em;"></span></span><span style="top:-3.394em;"><span class="pstrut" style="height:3em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathdefault mtight">d</span><span class="mord mtight">Φ</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.345em;"><span></span></span></span></span></span><span class="mclose nulldelimiter"></span></span></span></span></span></td><td style="text-align:center">流明/米^2</td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>l</mi><mi>m</mi><mi mathvariant="normal">/</mi><msup><mi>m</mi><mn>2</mn></msup></mrow><annotation encoding="application/x-tex">lm/m^2</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.064108em;vertical-align:-0.25em;"></span><span class="mord mathdefault" style="margin-right:0.01968em;">l</span><span class="mord mathdefault">m</span><span class="mord">/</span><span class="mord"><span class="mord mathdefault">m</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.8141079999999999em;"><span style="top:-3.063em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight">2</span></span></span></span></span></span></span></span></span></span></span></td></tr><tr><td style="text-align:center">光照度</td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>E</mi></mrow><annotation encoding="application/x-tex">E</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.68333em;vertical-align:0em;"></span><span class="mord mathdefault" style="margin-right:0.05764em;">E</span></span></span></span></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mfrac><mrow><mi>d</mi><mi mathvariant="normal">Φ</mi></mrow><mrow><mi>d</mi><mi>A</mi></mrow></mfrac></mrow><annotation encoding="application/x-tex">\frac{d\Phi}{dA}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.2251079999999999em;vertical-align:-0.345em;"></span><span class="mord"><span class="mopen nulldelimiter"></span><span class="mfrac"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.8801079999999999em;"><span style="top:-2.6550000000000002em;"><span class="pstrut" style="height:3em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathdefault mtight">d</span><span class="mord mathdefault mtight">A</span></span></span></span><span style="top:-3.23em;"><span class="pstrut" style="height:3em;"></span><span class="frac-line" style="border-bottom-width:0.04em;"></span></span><span style="top:-3.394em;"><span class="pstrut" style="height:3em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathdefault mtight">d</span><span class="mord mtight">Φ</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.345em;"><span></span></span></span></span></span><span class="mclose nulldelimiter"></span></span></span></span></span></td><td style="text-align:center">勒克斯(流明/米^2$)</td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>l</mi><mi>x</mi><mo stretchy="false">(</mo><mi>l</mi><mi>m</mi><mi mathvariant="normal">/</mi><msup><mi>m</mi><mn>2</mn></msup><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">lx(lm/m^2)</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.064108em;vertical-align:-0.25em;"></span><span class="mord mathdefault" style="margin-right:0.01968em;">l</span><span class="mord mathdefault">x</span><span class="mopen">(</span><span class="mord mathdefault" style="margin-right:0.01968em;">l</span><span class="mord mathdefault">m</span><span class="mord">/</span><span class="mord"><span class="mord mathdefault">m</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.8141079999999999em;"><span style="top:-3.063em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight">2</span></span></span></span></span></span></span></span><span class="mclose">)</span></span></span></span></td></tr><tr><td style="text-align:center">发光强度</td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>I</mi></mrow><annotation encoding="application/x-tex">I</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.68333em;vertical-align:0em;"></span><span class="mord mathdefault" style="margin-right:0.07847em;">I</span></span></span></span></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mfrac><mrow><mi>d</mi><mi mathvariant="normal">Φ</mi></mrow><mrow><mi>d</mi><mi>ω</mi></mrow></mfrac></mrow><annotation encoding="application/x-tex">\frac{d\Phi}{d\omega}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.2251079999999999em;vertical-align:-0.345em;"></span><span class="mord"><span class="mopen nulldelimiter"></span><span class="mfrac"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.8801079999999999em;"><span style="top:-2.6550000000000002em;"><span class="pstrut" style="height:3em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathdefault mtight">d</span><span class="mord mathdefault mtight" style="margin-right:0.03588em;">ω</span></span></span></span><span style="top:-3.23em;"><span class="pstrut" style="height:3em;"></span><span class="frac-line" style="border-bottom-width:0.04em;"></span></span><span style="top:-3.394em;"><span class="pstrut" style="height:3em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathdefault mtight">d</span><span class="mord mtight">Φ</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.345em;"><span></span></span></span></span></span><span class="mclose nulldelimiter"></span></span></span></span></span></td><td style="text-align:center">坎德拉(流明/球面度)</td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>c</mi><mi>d</mi><mo stretchy="false">(</mo><mi>l</mi><mi>m</mi><mi mathvariant="normal">/</mi><mi>s</mi><mi>r</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">cd(lm/sr)</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord mathdefault">c</span><span class="mord mathdefault">d</span><span class="mopen">(</span><span class="mord mathdefault" style="margin-right:0.01968em;">l</span><span class="mord mathdefault">m</span><span class="mord">/</span><span class="mord mathdefault">s</span><span class="mord mathdefault" style="margin-right:0.02778em;">r</span><span class="mclose">)</span></span></span></span></td></tr><tr><td style="text-align:center">光量</td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>Q</mi></mrow><annotation encoding="application/x-tex">Q</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8777699999999999em;vertical-align:-0.19444em;"></span><span class="mord mathdefault">Q</span></span></span></span></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>∫</mo><mi mathvariant="normal">Φ</mi><mi>d</mi><mi>t</mi></mrow><annotation encoding="application/x-tex">\int{\Phi}dt</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.11112em;vertical-align:-0.30612em;"></span><span class="mop op-symbol small-op" style="margin-right:0.19445em;position:relative;top:-0.0005599999999999772em;">∫</span><span class="mspace" style="margin-right:0.16666666666666666em;"></span><span class="mord"><span class="mord">Φ</span></span><span class="mord mathdefault">d</span><span class="mord mathdefault">t</span></span></span></span></td><td style="text-align:center">流明·秒</td><td style="text-align:center">lm·s</td></tr></tbody></table>]]></content>
<categories>
<category> 专业课 </category>
<category> 光电检测 </category>
</categories>
<tags>
<tag> 笔记 </tag>
</tags>
</entry>
<entry>
<title>markdown 插入数学公式</title>
<link href="/post/4af10423.html"/>
<url>/post/4af10423.html</url>
<content type="html"><![CDATA[<h1 id="在文本中插入数学公式"><a class="markdownIt-Anchor" href="#在文本中插入数学公式"></a> 在文本中插入数学公式</h1><a id="more"></a> <h2 id="同行插入公式"><a class="markdownIt-Anchor" href="#同行插入公式"></a> 同行插入公式</h2><p>就像这样 <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>=</mo><mi>a</mi><msup><mi>x</mi><mn>2</mn></msup><mo>+</mo><mi>b</mi><mi>x</mi><mo>+</mo><mi>c</mi></mrow><annotation encoding="application/x-tex">f(x)=ax^2+bx+c</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord mathdefault" style="margin-right:0.10764em;">f</span><span class="mopen">(</span><span class="mord mathdefault">x</span><span class="mclose">)</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span></span><span class="base"><span class="strut" style="height:0.897438em;vertical-align:-0.08333em;"></span><span class="mord mathdefault">a</span><span class="mord"><span class="mord mathdefault">x</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.8141079999999999em;"><span style="top:-3.063em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight">2</span></span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.2222222222222222em;"></span><span class="mbin">+</span><span class="mspace" style="margin-right:0.2222222222222222em;"></span></span><span class="base"><span class="strut" style="height:0.77777em;vertical-align:-0.08333em;"></span><span class="mord mathdefault">b</span><span class="mord mathdefault">x</span><span class="mspace" style="margin-right:0.2222222222222222em;"></span><span class="mbin">+</span><span class="mspace" style="margin-right:0.2222222222222222em;"></span></span><span class="base"><span class="strut" style="height:0.43056em;vertical-align:0em;"></span><span class="mord mathdefault">c</span></span></span></span></p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">Code</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line">$f(x)&#x3D;ax^2+bx+c$ </span><br><span class="line">$写你的公式$</span><br><span class="line">&#96;&#96;&#96; </span><br><span class="line"></span><br><span class="line">## 换行插入公式</span><br><span class="line">就像这样: </span><br><span class="line">$$f(x)&#x3D;ax^2+bx+c$$ </span><br><span class="line">&#96;&#96;&#96;latex</span><br><span class="line">$$f(x)&#x3D;ax^2+bx+c$$ </span><br><span class="line">$$公式$$ </span><br><span class="line">两个$$使公式居中</span><br></pre></td></tr></table></figure></div><h1 id="上标或下标"><a class="markdownIt-Anchor" href="#上标或下标"></a> 上标或下标</h1><h2 id="编辑单个上标或者下标"><a class="markdownIt-Anchor" href="#编辑单个上标或者下标"></a> 编辑单个上标或者下标</h2><p>编辑公式上标使用用 ^ ,下标用<code>_</code> 。<br>例如:<span class="katex"><span class="katex-mathml"><math><semantics><mrow><msup><mi>x</mi><mn>2</mn></msup></mrow><annotation encoding="application/x-tex">x^2</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8141079999999999em;vertical-align:0em;"></span><span class="mord"><span class="mord mathdefault">x</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.8141079999999999em;"><span style="top:-3.063em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight">2</span></span></span></span></span></span></span></span></span></span></span> &amp; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>x</mi><mo>∗</mo><mn>2</mn></mrow><annotation encoding="application/x-tex">x*2</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.46528em;vertical-align:0em;"></span><span class="mord mathdefault">x</span><span class="mspace" style="margin-right:0.2222222222222222em;"></span><span class="mbin">∗</span><span class="mspace" style="margin-right:0.2222222222222222em;"></span></span><span class="base"><span class="strut" style="height:0.64444em;vertical-align:0em;"></span><span class="mord">2</span></span></span></span></p><h2 id="编辑双上标或者下标下上标为公式"><a class="markdownIt-Anchor" href="#编辑双上标或者下标下上标为公式"></a> 编辑双上标或者下标(下/上标为公式)</h2><p>如果要在公式使用双下/上标或者上/下标插入公式,将上标/下标用<code>{ }</code>括起来即可<br>例如:<span class="katex"><span class="katex-mathml"><math><semantics><mrow><msup><mi>e</mi><mrow><mi>l</mi><mi>n</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow></msup><mo>=</mo><mi>x</mi></mrow><annotation encoding="application/x-tex">e^{ln(x)}=x</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8879999999999999em;vertical-align:0em;"></span><span class="mord"><span class="mord mathdefault">e</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.8879999999999999em;"><span style="top:-3.063em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathdefault mtight" style="margin-right:0.01968em;">l</span><span class="mord mathdefault mtight">n</span><span class="mopen mtight">(</span><span class="mord mathdefault mtight">x</span><span class="mclose mtight">)</span></span></span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span></span><span class="base"><span class="strut" style="height:0.43056em;vertical-align:0em;"></span><span class="mord mathdefault">x</span></span></span></span></p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">Code</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$e^&#123;ln(x)&#125;&#x3D;x$</span><br></pre></td></tr></table></figure></div><h1 id="编辑数学符号"><a class="markdownIt-Anchor" href="#编辑数学符号"></a> <em>编辑数学符号</em></h1><h2 id="数学符号"><a class="markdownIt-Anchor" href="#数学符号"></a> 数学符号</h2><table><thead><tr><th style="text-align:center">Name</th><th>Display</th><th>Name</th></tr></thead><tbody><tr><td style="text-align:center"><code>字母上方横线</code></td><td><code>\overline{}, \bar{}</code></td><td><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mover accent="true"><mrow><mi>A</mi><mi>B</mi><mi>C</mi></mrow><mo stretchy="true">‾</mo></mover></mrow><annotation encoding="application/x-tex">\overline{ABC}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8833300000000001em;vertical-align:0em;"></span><span class="mord overline"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.8833300000000001em;"><span style="top:-3em;"><span class="pstrut" style="height:3em;"></span><span class="mord"><span class="mord mathdefault">A</span><span class="mord mathdefault" style="margin-right:0.05017em;">B</span><span class="mord mathdefault" style="margin-right:0.07153em;">C</span></span></span><span style="top:-3.80333em;"><span class="pstrut" style="height:3em;"></span><span class="overline-line" style="border-bottom-width:0.04em;"></span></span></span></span></span></span></span></span></span> or <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>b</mi><mi>a</mi><mi>r</mi><mi>A</mi></mrow><annotation encoding="application/x-tex">bar{A}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.69444em;vertical-align:0em;"></span><span class="mord mathdefault">b</span><span class="mord mathdefault">a</span><span class="mord mathdefault" style="margin-right:0.02778em;">r</span><span class="mord"><span class="mord mathdefault">A</span></span></span></span></span></td></tr><tr><td style="text-align:center"><code>字母下方横线</code></td><td><code>\underline{}</code></td><td><span class="katex"><span class="katex-mathml"><math><semantics><mrow><munder accentunder="true"><mrow><mi>A</mi><mi>B</mi><mi>C</mi></mrow><mo stretchy="true">‾</mo></munder></mrow><annotation encoding="application/x-tex">\underline{ABC}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8833300000000001em;vertical-align:-0.20000000000000007em;"></span><span class="mord underline"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.68333em;"><span style="top:-2.84em;"><span class="pstrut" style="height:3em;"></span><span class="underline-line" style="border-bottom-width:0.04em;"></span></span><span style="top:-3em;"><span class="pstrut" style="height:3em;"></span><span class="mord"><span class="mord mathdefault">A</span><span class="mord mathdefault" style="margin-right:0.05017em;">B</span><span class="mord mathdefault" style="margin-right:0.07153em;">C</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.20000000000000007em;"><span></span></span></span></span></span></span></span></span></td></tr><tr><td style="text-align:center">字母上方波浪线</td><td><code>\tilde{}, \widetilde{}</code></td><td><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mover accent="true"><mi>A</mi><mo>~</mo></mover></mrow><annotation encoding="application/x-tex">\tilde{A}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.9201899999999998em;vertical-align:0em;"></span><span class="mord accent"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.9201899999999998em;"><span style="top:-3em;"><span class="pstrut" style="height:3em;"></span><span class="mord"><span class="mord mathdefault">A</span></span></span><span style="top:-3.6023300000000003em;"><span class="pstrut" style="height:3em;"></span><span class="accent-body" style="left:-0.11110999999999999em;">~</span></span></span></span></span></span></span></span></span> or <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mover accent="true"><mrow><mi>A</mi><mi>B</mi><mi>C</mi></mrow><mo stretchy="true">~</mo></mover></mrow><annotation encoding="application/x-tex">\widetilde{ABC}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.96933em;vertical-align:0em;"></span><span class="mord accent"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.96933em;"><span style="top:-3em;"><span class="pstrut" style="height:3em;"></span><span class="mord"><span class="mord mathdefault">A</span><span class="mord mathdefault" style="margin-right:0.05017em;">B</span><span class="mord mathdefault" style="margin-right:0.07153em;">C</span></span></span><span class="svg-align" style="top:-3.6833299999999998em;"><span class="pstrut" style="height:3em;"></span><span style="height:0.286em;"><svg width="100%" height="0.286em" viewbox="0 0 1033 286" preserveaspectratio="none"><path d="M344 55.266c-142 0-300.638 81.316-311.5 86.418-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 181.476 676 181.476c-149 0-189-126.21-332-126.21z"/></svg></span></span></span></span></span></span></span></span></span></td></tr><tr><td style="text-align:center">字母上方尖号^</td><td><code>\hat{}, \widehat{}</code></td><td><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mover accent="true"><mrow><mi>A</mi><mi>B</mi><mi>C</mi></mrow><mo>^</mo></mover></mrow><annotation encoding="application/x-tex">\hat{ABC}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.9467699999999999em;vertical-align:0em;"></span><span class="mord accent"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.9467699999999999em;"><span style="top:-3em;"><span class="pstrut" style="height:3em;"></span><span class="mord"><span class="mord mathdefault">A</span><span class="mord mathdefault" style="margin-right:0.05017em;">B</span><span class="mord mathdefault" style="margin-right:0.07153em;">C</span></span></span><span style="top:-3.25233em;"><span class="pstrut" style="height:3em;"></span><span class="accent-body" style="left:-0.25em;">^</span></span></span></span></span></span></span></span></span> or <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mover accent="true"><mrow><mi>A</mi><mi>B</mi><mi>C</mi></mrow><mo stretchy="true">^</mo></mover></mrow><annotation encoding="application/x-tex">\widehat{ABC}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.98333em;vertical-align:0em;"></span><span class="mord accent"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.98333em;"><span style="top:-3em;"><span class="pstrut" style="height:3em;"></span><span class="mord"><span class="mord mathdefault">A</span><span class="mord mathdefault" style="margin-right:0.05017em;">B</span><span class="mord mathdefault" style="margin-right:0.07153em;">C</span></span></span><span class="svg-align" style="top:-3.6833299999999998em;"><span class="pstrut" style="height:3em;"></span><span style="height:0.3em;"><svg width="100%" height="0.3em" viewbox="0 0 2364 300" preserveaspectratio="none"><path d="M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z"/></svg></span></span></span></span></span></span></span></span></span></td></tr><tr><td style="text-align:center"><code>字母上方箭头</code></td><td><code>\vec{}, \overleftarrow{}, \overrightarrow{}</code></td><td><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mover accent="true"><mi>b</mi><mo>⃗</mo></mover></mrow><annotation encoding="application/x-tex">\vec{b}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.9774399999999999em;vertical-align:0em;"></span><span class="mord accent"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.9774399999999999em;"><span style="top:-3em;"><span class="pstrut" style="height:3em;"></span><span class="mord"><span class="mord mathdefault">b</span></span></span><span style="top:-3.26344em;"><span class="pstrut" style="height:3em;"></span><span class="accent-body" style="left:-0.2355em;"><span class="overlay" style="height:0.714em;width:0.471em;"><svg width="0.471em" height="0.714em" style="width:0.471em" viewbox="0 0 471 714" preserveaspectratio="xMinYMin"><path d="M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 53.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 1110.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359c-16-25.333-24-45-24-59z"/></svg></span></span></span></span></span></span></span></span></span></span> or <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mover accent="true"><mrow><mi>a</mi><mi>b</mi></mrow><mo stretchy="true">←</mo></mover></mrow><annotation encoding="application/x-tex">\overleftarrow{ab}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.21644em;vertical-align:0em;"></span><span class="mord accent"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:1.21644em;"><span style="top:-3em;"><span class="pstrut" style="height:3em;"></span><span class="mord"><span class="mord mathdefault">a</span><span class="mord mathdefault">b</span></span></span><span class="svg-align" style="top:-3.69444em;"><span class="pstrut" style="height:3em;"></span><span class="hide-tail" style="height:0.522em;min-width:0.888em;"><svg width="400em" height="0.522em" viewbox="0 0 400000 522" preserveaspectratio="xMinYMin slice"><path d="M400000 241H110l3-3c68.7-52.7 113.7-120 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 l-3-3h399890zM100 241v40h399900v-40z"/></svg></span></span></span></span></span></span></span></span></span> or <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mover accent="true"><mrow><mi>a</mi><mi>b</mi></mrow><mo stretchy="true">→</mo></mover></mrow><annotation encoding="application/x-tex">\overrightarrow{ab}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.21644em;vertical-align:0em;"></span><span class="mord accent"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:1.21644em;"><span style="top:-3em;"><span class="pstrut" style="height:3em;"></span><span class="mord"><span class="mord mathdefault">a</span><span class="mord mathdefault">b</span></span></span><span class="svg-align" style="top:-3.69444em;"><span class="pstrut" style="height:3em;"></span><span class="hide-tail" style="height:0.522em;min-width:0.888em;"><svg width="400em" height="0.522em" viewbox="0 0 400000 522" preserveaspectratio="xMaxYMin slice"><path d="M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 151.7 139 205zm0 0v40h399900v-40z"/></svg></span></span></span></span></span></span></span></span></span></td></tr><tr><td style="text-align:center"><code>字母上方花括号</code></td><td><code>\overbrace{}</code></td><td><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mover><mrow><mn>1</mn><mo>+</mo><mn>2</mn><mo>+</mo><mn>3</mn></mrow><mo stretchy="true">⏞</mo></mover></mrow><annotation encoding="application/x-tex">\overbrace{1+2+3}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.37577em;vertical-align:-0.08333em;"></span><span class="mord mover"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:1.29244em;"><span style="top:-3em;"><span class="pstrut" style="height:3em;"></span><span class="mord"><span class="mord">1</span><span class="mspace" style="margin-right:0.2222222222222222em;"></span><span class="mbin">+</span><span class="mspace" style="margin-right:0.2222222222222222em;"></span><span class="mord">2</span><span class="mspace" style="margin-right:0.2222222222222222em;"></span><span class="mbin">+</span><span class="mspace" style="margin-right:0.2222222222222222em;"></span><span class="mord">3</span></span></span><span class="svg-align" style="top:-3.74444em;"><span class="pstrut" style="height:3em;"></span><span class="stretchy" style="height:0.548em;min-width:1.6em;"><span class="brace-left" style="height:0.548em;"><svg width="400em" height="0.548em" viewbox="0 0 400000 548" preserveaspectratio="xMinYMin slice"><path d="M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 5-6 9-10 13-.7 1-7.3 1-20 1H6z"/></svg></span><span class="brace-center" style="height:0.548em;"><svg width="400em" height="0.548em" viewbox="0 0 400000 548" preserveaspectratio="xMidYMin slice"><path d="M200428 334c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z"/></svg></span><span class="brace-right" style="height:0.548em;"><svg width="400em" height="0.548em" viewbox="0 0 400000 548" preserveaspectratio="xMaxYMin slice"><path d="M400000 542l-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z"/></svg></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.08333em;"><span></span></span></span></span></span></span></span></span></td></tr><tr><td style="text-align:center"><code>下方花括号</code></td><td><code>\underbrace{}</code></td><td><span class="katex"><span class="katex-mathml"><math><semantics><mrow><munder><mrow><mn>1</mn><mo>+</mo><mn>2</mn><mo>+</mo><mn>3</mn></mrow><mo stretchy="true">⏟</mo></munder></mrow><annotation encoding="application/x-tex">\underbrace{1+2+3}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.3757700000000002em;vertical-align:-0.73133em;"></span><span class="mord munder"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.64444em;"><span class="svg-align" style="top:-2.26867em;"><span class="pstrut" style="height:3em;"></span><span class="stretchy" style="height:0.548em;min-width:1.6em;"><span class="brace-left" style="height:0.548em;"><svg width="400em" height="0.548em" viewbox="0 0 400000 548" preserveaspectratio="xMinYMin slice"><path d="M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z"/></svg></span><span class="brace-center" style="height:0.548em;"><svg width="400em" height="0.548em" viewbox="0 0 400000 548" preserveaspectratio="xMidYMin slice"><path d="M199572 214c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z"/></svg></span><span class="brace-right" style="height:0.548em;"><svg width="400em" height="0.548em" viewbox="0 0 400000 548" preserveaspectratio="xMaxYMin slice"><path d="M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z"/></svg></span></span></span><span style="top:-3em;"><span class="pstrut" style="height:3em;"></span><span class="mord"><span class="mord">1</span><span class="mspace" style="margin-right:0.2222222222222222em;"></span><span class="mbin">+</span><span class="mspace" style="margin-right:0.2222222222222222em;"></span><span class="mord">2</span><span class="mspace" style="margin-right:0.2222222222222222em;"></span><span class="mbin">+</span><span class="mspace" style="margin-right:0.2222222222222222em;"></span><span class="mord">3</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.73133em;"><span></span></span></span></span></span></span></span></span></td></tr><tr><td style="text-align:center"><code>字母上方点号</code></td><td><code>\dot{}, \ddot{}</code></td><td><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mover accent="true"><mi>a</mi><mo>˙</mo></mover></mrow><annotation encoding="application/x-tex">\dot{a}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.66786em;vertical-align:0em;"></span><span class="mord accent"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.66786em;"><span style="top:-3em;"><span class="pstrut" style="height:3em;"></span><span class="mord"><span class="mord mathdefault">a</span></span></span><span style="top:-3em;"><span class="pstrut" style="height:3em;"></span><span class="accent-body" style="left:-0.13889em;">˙</span></span></span></span></span></span></span></span></span> or <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mover accent="true"><mi>a</mi><mo>¨</mo></mover></mrow><annotation encoding="application/x-tex">\ddot{a}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.66786em;vertical-align:0em;"></span><span class="mord accent"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.66786em;"><span style="top:-3em;"><span class="pstrut" style="height:3em;"></span><span class="mord"><span class="mord mathdefault">a</span></span></span><span style="top:-3em;"><span class="pstrut" style="height:3em;"></span><span class="accent-body" style="left:-0.25em;">¨</span></span></span></span></span></span></span></span></span></td></tr><tr><td style="text-align:center"><code>省略号</code></td><td><code>\dots, \cdots</code></td><td>$ 1,2,\dots$</td></tr><tr><td style="text-align:center"><code>积分</code></td><td><code>\int_{}^{}</code></td><td><span class="katex"><span class="katex-mathml"><math><semantics><mrow><msubsup><mo>∫</mo><mi>a</mi><mi>b</mi></msubsup></mrow><annotation encoding="application/x-tex">\int_{a}^{b}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.399828em;vertical-align:-0.35582em;"></span><span class="mop"><span class="mop op-symbol small-op" style="margin-right:0.19445em;position:relative;top:-0.0005599999999999772em;">∫</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:1.044008em;"><span style="top:-2.34418em;margin-left:-0.19445em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathdefault mtight">a</span></span></span></span><span style="top:-3.2579000000000002em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathdefault mtight">b</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.35582em;"><span></span></span></span></span></span></span></span></span></span> <span class="katex"><span class="katex-mathml"><math><semantics><mrow><msubsup><mo>∫</mo><mrow><mo>−</mo><mi mathvariant="normal">∞</mi></mrow><mrow><mo>+</mo><mi mathvariant="normal">∞</mi></mrow></msubsup><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mi mathvariant="normal">d</mi><mi>x</mi></mrow><annotation encoding="application/x-tex">\int_{-\infty}^{+\infty}f(x)\mathrm{d}x</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.380382em;vertical-align:-0.41415100000000005em;"></span><span class="mop"><span class="mop op-symbol small-op" style="margin-right:0.19445em;position:relative;top:-0.0005599999999999772em;">∫</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.9662310000000001em;"><span style="top:-2.34418em;margin-left:-0.19445em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">−</span><span class="mord mtight">∞</span></span></span></span><span style="top:-3.2579000000000002em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">+</span><span class="mord mtight">∞</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.41415100000000005em;"><span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.16666666666666666em;"></span><span class="mord mathdefault" style="margin-right:0.10764em;">f</span><span class="mopen">(</span><span class="mord mathdefault">x</span><span class="mclose">)</span><span class="mord"><span class="mord mathrm">d</span></span><span class="mord mathdefault">x</span></span></span></span></td></tr><tr><td style="text-align:center"><code>双重积分</code></td><td><code>\iint</code></td><td><span class="katex"><span class="katex-mathml"><math><semantics><mrow><msubsup><mo>∬</mo><mrow><mo>−</mo><mi mathvariant="normal">∞</mi></mrow><mrow><mo>+</mo><mi mathvariant="normal">∞</mi></mrow></msubsup><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo separator="true">,</mo><mi>y</mi><mo stretchy="false">)</mo><mi mathvariant="normal">d</mi><mi>x</mi><mi mathvariant="normal">d</mi><mi>y</mi></mrow><annotation encoding="application/x-tex">\iint_{-\infty}^{+\infty}f(x,y)\mathrm{d}x\mathrm{d}y</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.380262em;vertical-align:-0.41403100000000004em;"></span><span class="mop"><span class="mop op-symbol small-op" style="margin-right:0.19445em;position:relative;top:-0.0004999999999999727em;">∬</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.9662310000000001em;"><span style="top:-2.3443em;margin-left:-0.19445em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">−</span><span class="mord mtight">∞</span></span></span></span><span style="top:-3.2579000000000002em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">+</span><span class="mord mtight">∞</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.41403100000000004em;"><span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.16666666666666666em;"></span><span class="mord mathdefault" style="margin-right:0.10764em;">f</span><span class="mopen">(</span><span class="mord mathdefault">x</span><span class="mpunct">,</span><span class="mspace" style="margin-right:0.16666666666666666em;"></span><span class="mord mathdefault" style="margin-right:0.03588em;">y</span><span class="mclose">)</span><span class="mord"><span class="mord mathrm">d</span></span><span class="mord mathdefault">x</span><span class="mord"><span class="mord mathrm">d</span></span><span class="mord mathdefault" style="margin-right:0.03588em;">y</span></span></span></span></td></tr><tr><td style="text-align:center"><code>行内积分</code></td><td><code>\int_{-\infty}^{+\infty} f(x) \mathrm{d}x</code></td><td><span class="katex"><span class="katex-mathml"><math><semantics><mrow><msubsup><mo>∫</mo><mrow><mo>−</mo><mi mathvariant="normal">∞</mi></mrow><mrow><mo>+</mo><mi mathvariant="normal">∞</mi></mrow></msubsup><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mi mathvariant="normal">d</mi><mi>x</mi></mrow><annotation encoding="application/x-tex">\int_{-\infty}^{+\infty} f(x)\mathrm{d}x</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.380382em;vertical-align:-0.41415100000000005em;"></span><span class="mop"><span class="mop op-symbol small-op" style="margin-right:0.19445em;position:relative;top:-0.0005599999999999772em;">∫</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.9662310000000001em;"><span style="top:-2.34418em;margin-left:-0.19445em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">−</span><span class="mord mtight">∞</span></span></span></span><span style="top:-3.2579000000000002em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">+</span><span class="mord mtight">∞</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.41415100000000005em;"><span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.16666666666666666em;"></span><span class="mord mathdefault" style="margin-right:0.10764em;">f</span><span class="mopen">(</span><span class="mord mathdefault">x</span><span class="mclose">)</span><span class="mord"><span class="mord mathrm">d</span></span><span class="mord mathdefault">x</span></span></span></span></td></tr><tr><td style="text-align:center"><code>行内积分limits模式</code></td><td><code>\int\limits_{}^{}</code></td><td><span class="katex"><span class="katex-mathml"><math><semantics><mrow><msubsup><mo>∫</mo><mrow><mo>−</mo><mi mathvariant="normal">∞</mi></mrow><mrow><mo>+</mo><mi mathvariant="normal">∞</mi></mrow></msubsup><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mi mathvariant="normal">d</mi><mi>x</mi></mrow><annotation encoding="application/x-tex">\int\limits_{-\infty}^{+\infty}f(x)\mathrm{d}x</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:2.577782em;vertical-align:-1.0638910000000001em;"></span><span class="mop op-limits"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:1.513891em;"><span style="top:-2.0944399999999996em;margin-left:-0.19445em;"><span class="pstrut" style="height:3em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">−</span><span class="mord mtight">∞</span></span></span></span><span style="top:-3.0005599999999997em;"><span class="pstrut" style="height:3em;"></span><span><span class="mop op-symbol small-op" style="margin-right:0.19445em;">∫</span></span></span><span style="top:-4.00556em;margin-left:0.19445em;"><span class="pstrut" style="height:3em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">+</span><span class="mord mtight">∞</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:1.0638910000000001em;"><span></span></span></span></span></span><span class="mspace" style="margin-right:0.16666666666666666em;"></span><span class="mord mathdefault" style="margin-right:0.10764em;">f</span><span class="mopen">(</span><span class="mord mathdefault">x</span><span class="mclose">)</span><span class="mord"><span class="mord mathrm">d</span></span><span class="mord mathdefault">x</span></span></span></span></td></tr><tr><td style="text-align:center"><code>行内积分display模式</code></td><td><code>\displaystyle \int_{}^{}</code></td><td><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mstyle scriptlevel="0" displaystyle="true"><msubsup><mo>∫</mo><mrow><mo>−</mo><mi mathvariant="normal">∞</mi></mrow><mrow><mo>+</mo><mi mathvariant="normal">∞</mi></mrow></msubsup><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mi mathvariant="normal">d</mi><mi>x</mi></mstyle></mrow><annotation encoding="application/x-tex">\displaystyle\int_{-\infty}^{+\infty}f(x)\mathrm{d}x</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:2.491512em;vertical-align:-0.970281em;"></span><span class="mop"><span class="mop op-symbol large-op" style="margin-right:0.44445em;position:relative;top:-0.0011249999999999316em;">∫</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:1.5212310000000002em;"><span style="top:-1.7880500000000001em;margin-left:-0.44445em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">−</span><span class="mord mtight">∞</span></span></span></span><span style="top:-3.8129000000000004em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">+</span><span class="mord mtight">∞</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.970281em;"><span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.16666666666666666em;"></span><span class="mord mathdefault" style="margin-right:0.10764em;">f</span><span class="mopen">(</span><span class="mord mathdefault">x</span><span class="mclose">)</span><span class="mord"><span class="mord mathrm">d</span></span><span class="mord mathdefault">x</span></span></span></span></td></tr><tr><td style="text-align:center"><code>环路积分</code></td><td><code>\oint</code></td><td><span class="katex"><span class="katex-mathml"><math><semantics><mrow><msubsup><mo>∮</mo><mrow><mo>−</mo><mi mathvariant="normal">∞</mi></mrow><mrow><mo>+</mo><mi mathvariant="normal">∞</mi></mrow></msubsup><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mi mathvariant="normal">d</mi><mi>y</mi></mrow><annotation encoding="application/x-tex">\oint_{-\infty}^{+\infty}f(x)\mathrm{d}y</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.380382em;vertical-align:-0.41415100000000005em;"></span><span class="mop"><span class="mop op-symbol small-op" style="margin-right:0.19445em;position:relative;top:-0.0005599999999999772em;">∮</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.9662310000000001em;"><span style="top:-2.34418em;margin-left:-0.19445em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">−</span><span class="mord mtight">∞</span></span></span></span><span style="top:-3.2579000000000002em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">+</span><span class="mord mtight">∞</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.41415100000000005em;"><span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.16666666666666666em;"></span><span class="mord mathdefault" style="margin-right:0.10764em;">f</span><span class="mopen">(</span><span class="mord mathdefault">x</span><span class="mclose">)</span><span class="mord"><span class="mord mathrm">d</span></span><span class="mord mathdefault" style="margin-right:0.03588em;">y</span></span></span></span></td></tr><tr><td style="text-align:center"><code>求乘积</code></td><td><code>\prod_{}^{}</code></td><td><span class="katex"><span class="katex-mathml"><math><semantics><mrow><msubsup><mo>∏</mo><mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow><mi>n</mi></msubsup><msub><mi>a</mi><mi>i</mi></msub></mrow><annotation encoding="application/x-tex">\prod_{i=1}^{n}a_i</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.104002em;vertical-align:-0.29971000000000003em;"></span><span class="mop"><span class="mop op-symbol small-op" style="position:relative;top:-0.0000050000000000050004em;">∏</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.804292em;"><span style="top:-2.40029em;margin-left:0em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathdefault mtight">i</span><span class="mrel mtight">=</span><span class="mord mtight">1</span></span></span></span><span style="top:-3.2029em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathdefault mtight">n</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.29971000000000003em;"><span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.16666666666666666em;"></span><span class="mord"><span class="mord mathdefault">a</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.31166399999999994em;"><span style="top:-2.5500000000000003em;margin-left:0em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mathdefault mtight">i</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span></td></tr><tr><td style="text-align:center">根号</td><td><code>\sqrt[n]{x}</code></td><td><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mroot><mi>x</mi><mi>n</mi></mroot></mrow><annotation encoding="application/x-tex">\sqrt[n]{x}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.04em;vertical-align:-0.23972em;"></span><span class="mord sqrt"><span class="root"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.5516160000000001em;"><span style="top:-2.836336em;"><span class="pstrut" style="height:2.5em;"></span><span class="sizing reset-size6 size1 mtight"><span class="mord mtight"><span class="mord mathdefault mtight">n</span></span></span></span></span></span></span></span><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.8002800000000001em;"><span class="svg-align" style="top:-3em;"><span class="pstrut" style="height:3em;"></span><span class="mord" style="padding-left:0.833em;"><span class="mord mathdefault">x</span></span></span><span style="top:-2.76028em;"><span class="pstrut" style="height:3em;"></span><span class="hide-tail" style="min-width:0.853em;height:1.08em;"><svg width="400em" height="1.08em" viewbox="0 0 400000 1080" preserveaspectratio="xMinYMin slice"><path d="M95,702c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429c69,-144,104.5,-217.7,106.5,-221c5.3,-9.3,12,-14,20,-14H400000v40H845.2724s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z M834 80H400000v40H845z"/></svg></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.23972em;"><span></span></span></span></span></span></span></span></span></td></tr></tbody></table><h2 id="编号"><a class="markdownIt-Anchor" href="#编号"></a> 编号</h2><ul><li><p>插入编号:</p><p>使用<code>\tag</code>指令指定公式的具体编号,并使用<code>\label</code>指令埋下锚点。如<code>y=x^2 \tag{1.5a} \label{eq:test}</code>:</p>y=x^2 \tag{1.5a} \label{eq:1.5a} </li><li><p>引用编号:</p><p>使用<code>\eqref</code>指令引用前面埋下的锚点,<code>\eqref{eq:test}</code>将显示为:</p>\eqref{eq:1.5a} </li></ul><h2 id="方程组"><a class="markdownIt-Anchor" href="#方程组"></a> 方程组</h2><ul><li><p>左侧花括号</p> <div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">Code</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><span class="line">\begin&#123;equation&#125;</span><br><span class="line">% \begin&#123;equation*&#125; 加&#39;*&#39;去掉公式编号</span><br><span class="line">\left\&#123;</span><br><span class="line">\begin&#123;aligned&#125; %请使用&#39;aligned&#39;或&#39;align*&#39;</span><br><span class="line">2x + y &amp;&#x3D; 1 \\ %加&#39;&amp;&#39;指定对齐位置</span><br><span class="line">2x + 2y &amp;&#x3D; 2</span><br><span class="line">\end&#123;aligned&#125;</span><br><span class="line">\right.</span><br><span class="line">\end&#123;equation&#125;</span><br><span class="line">% \end&#123;equation*&#125; 加&#39;*&#39;去掉公式编号</span><br><span class="line"></span><br><span class="line">% 注意:在 markdown 环境下,某些特殊字符,如&#39;\&#39;, &#39;*&#39;等,会首先被 markdown 语法转义,然后再被 Latex 转义。</span><br><span class="line">% 因此有时候 &#39;\&#123;&#39;需要写作&#39;\\&#123;&#39;,&#39;*&#39;需要写作&#39;\*&#39;,&#39;\\&#39;需要写作&#39;\\\\&#39;等,视不同的解释环境而定</span><br></pre></td></tr></table></figure></div> \begin{equation}\left\\{\begin{aligned}2x + y &= 1 \\\\2x + 2y &= 2\end{aligned}\right.\end{equation} <p><strong>注</strong>:如果各个方程需要在某个字符处对齐(如等号对齐),只需在所有要对齐的字符前加上 <code>&amp;</code> 符号。如果不需要公式编号,只需在宏包名称后加上 <code>*</code> 号。</p></li><li><p>分情况讨论方程式</p> <div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">Code</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">f(x) &#x3D;</span><br><span class="line">\begin&#123;cases&#125;</span><br><span class="line">x^2 \qquad &amp; a \gt 0 \\</span><br><span class="line">e^x \qquad &amp; a \le 0</span><br><span class="line">\end&#123;cases&#125;</span><br></pre></td></tr></table></figure></div><p><span class="katex-display"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>=</mo><mrow><mo fence="true">{</mo><mtable rowspacing="0.3599999999999999em" columnalign="left left" columnspacing="1em"><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow><msup><mi>x</mi><mn>2</mn></msup><mspace width="2em"></mspace></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow><mi>a</mi><mo>&gt;</mo><mn>0</mn></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow><msup><mi>e</mi><mi>x</mi></msup><mspace width="2em"></mspace></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow><mi>a</mi><mo>≤</mo><mn>0</mn></mrow></mstyle></mtd></mtr></mtable></mrow></mrow><annotation encoding="application/x-tex"> f(x) = \begin{cases}x^2 \qquad &amp; a \gt 0 \\\\e^x \qquad &amp; a \le 0\end{cases} </annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord mathdefault" style="margin-right:0.10764em;">f</span><span class="mopen">(</span><span class="mord mathdefault">x</span><span class="mclose">)</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span></span><span class="base"><span class="strut" style="height:4.32em;vertical-align:-1.9100000000000001em;"></span><span class="minner"><span class="mopen"><span class="delimsizing mult"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:2.35002em;"><span style="top:-2.19999em;"><span class="pstrut" style="height:3.15em;"></span><span class="delimsizinginner delim-size4"><span>⎩</span></span></span><span style="top:-2.19999em;"><span class="pstrut" style="height:3.15em;"></span><span class="delimsizinginner delim-size4"><span>⎪</span></span></span><span style="top:-3.1500100000000004em;"><span class="pstrut" style="height:3.15em;"></span><span class="delimsizinginner delim-size4"><span>⎨</span></span></span><span style="top:-4.30001em;"><span class="pstrut" style="height:3.15em;"></span><span class="delimsizinginner delim-size4"><span>⎪</span></span></span><span style="top:-4.60002em;"><span class="pstrut" style="height:3.15em;"></span><span class="delimsizinginner delim-size4"><span>⎧</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:1.8500199999999998em;"><span></span></span></span></span></span></span><span class="mord"><span class="mtable"><span class="col-align-l"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:2.41em;"><span style="top:-4.41em;"><span class="pstrut" style="height:3.008em;"></span><span class="mord"><span class="mord"><span class="mord mathdefault">x</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.8141079999999999em;"><span style="top:-3.063em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight">2</span></span></span></span></span></span></span></span><span class="mspace" style="margin-right:2em;"></span></span></span><span style="top:-2.97em;"><span class="pstrut" style="height:3.008em;"></span><span class="mord"></span></span><span style="top:-1.5300000000000002em;"><span class="pstrut" style="height:3.008em;"></span><span class="mord"><span class="mord"><span class="mord mathdefault">e</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.664392em;"><span style="top:-3.063em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mathdefault mtight">x</span></span></span></span></span></span></span></span><span class="mspace" style="margin-right:2em;"></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:1.9099999999999997em;"><span></span></span></span></span></span><span class="arraycolsep" style="width:1em;"></span><span class="col-align-l"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:2.41em;"><span style="top:-4.41em;"><span class="pstrut" style="height:3.008em;"></span><span class="mord"><span class="mord mathdefault">a</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mrel">&gt;</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mord">0</span></span></span><span style="top:-1.5299999999999998em;"><span class="pstrut" style="height:3.008em;"></span><span class="mord"><span class="mord mathdefault">a</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mrel">≤</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mord">0</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:1.9100000000000001em;"><span></span></span></span></span></span></span></span><span class="mclose nulldelimiter"></span></span></span></span></span></span></p><p><span class="katex-display"><span class="katex"><span class="katex-mathml"><math><semantics><mtable rowspacing="0.24999999999999992em" columnalign="right left" columnspacing="0em"><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mi>a</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>=</mo><mn>1</mn></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mi>b</mi><mi>c</mi><mi>d</mi></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>=</mo><mn>2</mn></mrow></mstyle></mtd></mtr></mtable><annotation encoding="application/x-tex"> \begin{aligned}a &amp;= 1 \\\\bcd &amp;= 2\end{aligned} </annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:4.500000000000002em;vertical-align:-2.000000000000001em;"></span><span class="mord"><span class="mtable"><span class="col-align-r"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:2.5000000000000004em;"><span style="top:-4.66em;"><span class="pstrut" style="height:3em;"></span><span class="mord"><span class="mord mathdefault">a</span></span></span><span style="top:-3.16em;"><span class="pstrut" style="height:3em;"></span><span class="mord"></span></span><span style="top:-1.6599999999999993em;"><span class="pstrut" style="height:3em;"></span><span class="mord"><span class="mord mathdefault">b</span><span class="mord mathdefault">c</span><span class="mord mathdefault">d</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:2.000000000000001em;"><span></span></span></span></span></span><span class="col-align-l"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:2.5000000000000004em;"><span style="top:-4.66em;"><span class="pstrut" style="height:3em;"></span><span class="mord"><span class="mord"></span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mord">1</span></span></span><span style="top:-1.6599999999999997em;"><span class="pstrut" style="height:3em;"></span><span class="mord"><span class="mord"></span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mord">2</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:2.0000000000000004em;"><span></span></span></span></span></span></span></span></span></span></span></span></p></li></ul><h1 id="编辑特殊符号"><a class="markdownIt-Anchor" href="#编辑特殊符号"></a> 编辑特殊符号</h1><h2 id="常见希腊字母表"><a class="markdownIt-Anchor" href="#常见希腊字母表"></a> 常见希腊字母表</h2><table><thead><tr><th>代码</th><th style="text-align:center">符号</th><th>代码</th><th style="text-align:center">符号</th><th>代码</th><th style="text-align:center">符号</th></tr></thead><tbody><tr><td><code>\alpha</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>α</mi></mrow><annotation encoding="application/x-tex">\alpha</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.43056em;vertical-align:0em;"></span><span class="mord mathdefault" style="margin-right:0.0037em;">α</span></span></span></span></td><td></td><td style="text-align:center"></td><td></td><td style="text-align:center"></td></tr><tr><td><code>\beta</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>β</mi></mrow><annotation encoding="application/x-tex">\beta</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="mord mathdefault" style="margin-right:0.05278em;">β</span></span></span></span></td><td></td><td style="text-align:center"></td><td></td><td style="text-align:center"></td></tr><tr><td><code>\gamma</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>γ</mi></mrow><annotation encoding="application/x-tex">\gamma</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.625em;vertical-align:-0.19444em;"></span><span class="mord mathdefault" style="margin-right:0.05556em;">γ</span></span></span></span></td><td><code>\Gamma</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">Γ</mi></mrow><annotation encoding="application/x-tex">\Gamma</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.68333em;vertical-align:0em;"></span><span class="mord">Γ</span></span></span></span></td><td></td><td style="text-align:center"></td></tr><tr><td><code>\theta</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>θ</mi></mrow><annotation encoding="application/x-tex">\theta</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.69444em;vertical-align:0em;"></span><span class="mord mathdefault" style="margin-right:0.02778em;">θ</span></span></span></span></td><td><code>\Theta</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">Θ</mi></mrow><annotation encoding="application/x-tex">\Theta</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.68333em;vertical-align:0em;"></span><span class="mord">Θ</span></span></span></span></td><td><code>\vartheta</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>ϑ</mi></mrow><annotation encoding="application/x-tex">\vartheta</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.69444em;vertical-align:0em;"></span><span class="mord mathdefault">ϑ</span></span></span></span></td></tr><tr><td><code>\mu</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>μ</mi></mrow><annotation encoding="application/x-tex">\mu</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.625em;vertical-align:-0.19444em;"></span><span class="mord mathdefault">μ</span></span></span></span></td><td></td><td style="text-align:center"></td><td></td><td style="text-align:center"></td></tr><tr><td><code>\delta</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>δ</mi></mrow><annotation encoding="application/x-tex">\delta</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.69444em;vertical-align:0em;"></span><span class="mord mathdefault" style="margin-right:0.03785em;">δ</span></span></span></span></td><td><code>\Delta</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">Δ</mi></mrow><annotation encoding="application/x-tex">\Delta</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.68333em;vertical-align:0em;"></span><span class="mord">Δ</span></span></span></span></td><td></td><td style="text-align:center"></td></tr><tr><td><code>\epsilon</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>ϵ</mi></mrow><annotation encoding="application/x-tex">\epsilon</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.43056em;vertical-align:0em;"></span><span class="mord mathdefault">ϵ</span></span></span></span></td><td></td><td style="text-align:center"></td><td><code>\varepsilon</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>ε</mi></mrow><annotation encoding="application/x-tex">\varepsilon</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.43056em;vertical-align:0em;"></span><span class="mord mathdefault">ε</span></span></span></span></td></tr><tr><td><code>\sigma</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>σ</mi></mrow><annotation encoding="application/x-tex">\sigma</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.43056em;vertical-align:0em;"></span><span class="mord mathdefault" style="margin-right:0.03588em;">σ</span></span></span></span></td><td><code>\Sigma</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">Σ</mi></mrow><annotation encoding="application/x-tex">\Sigma</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.68333em;vertical-align:0em;"></span><span class="mord">Σ</span></span></span></span></td><td><code>\varsigma</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>ς</mi></mrow><annotation encoding="application/x-tex">\varsigma</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.52778em;vertical-align:-0.09722em;"></span><span class="mord mathdefault" style="margin-right:0.07986em;">ς</span></span></span></span></td></tr><tr><td><code>\pi</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>π</mi></mrow><annotation encoding="application/x-tex">\pi</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.43056em;vertical-align:0em;"></span><span class="mord mathdefault" style="margin-right:0.03588em;">π</span></span></span></span></td><td><code>\Pi</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">Π</mi></mrow><annotation encoding="application/x-tex">\Pi</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.68333em;vertical-align:0em;"></span><span class="mord">Π</span></span></span></span></td><td><code>\varpi</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>ϖ</mi></mrow><annotation encoding="application/x-tex">\varpi</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.43056em;vertical-align:0em;"></span><span class="mord mathdefault" style="margin-right:0.02778em;">ϖ</span></span></span></span></td></tr><tr><td><code>\omega</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>ω</mi></mrow><annotation encoding="application/x-tex">\omega</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.43056em;vertical-align:0em;"></span><span class="mord mathdefault" style="margin-right:0.03588em;">ω</span></span></span></span></td><td><code>\Omega</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">Ω</mi></mrow><annotation encoding="application/x-tex">\Omega</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.68333em;vertical-align:0em;"></span><span class="mord">Ω</span></span></span></span></td><td></td><td style="text-align:center"></td></tr><tr><td><code>\xi</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>ξ</mi></mrow><annotation encoding="application/x-tex">\xi</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="mord mathdefault" style="margin-right:0.04601em;">ξ</span></span></span></span></td><td><code>\Xi</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">Ξ</mi></mrow><annotation encoding="application/x-tex">\Xi</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.68333em;vertical-align:0em;"></span><span class="mord">Ξ</span></span></span></span></td><td></td><td style="text-align:center"></td></tr><tr><td><code>\zeta</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>ζ</mi></mrow><annotation encoding="application/x-tex">\zeta</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="mord mathdefault" style="margin-right:0.07378em;">ζ</span></span></span></span></td><td></td><td style="text-align:center"></td><td></td><td style="text-align:center"></td></tr><tr><td><code>\chi</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>χ</mi></mrow><annotation encoding="application/x-tex">\chi</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.625em;vertical-align:-0.19444em;"></span><span class="mord mathdefault">χ</span></span></span></span></td><td></td><td style="text-align:center"></td><td></td><td style="text-align:center"></td></tr><tr><td><code>\rho</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>ρ</mi></mrow><annotation encoding="application/x-tex">\rho</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.625em;vertical-align:-0.19444em;"></span><span class="mord mathdefault">ρ</span></span></span></span></td><td></td><td style="text-align:center"></td><td><code>\varrho</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>ϱ</mi></mrow><annotation encoding="application/x-tex">\varrho</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.625em;vertical-align:-0.19444em;"></span><span class="mord mathdefault">ϱ</span></span></span></span></td></tr><tr><td><code>\phi</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>ϕ</mi></mrow><annotation encoding="application/x-tex">\phi</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="mord mathdefault">ϕ</span></span></span></span></td><td><code>\Phi</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">Φ</mi></mrow><annotation encoding="application/x-tex">\Phi</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.68333em;vertical-align:0em;"></span><span class="mord">Φ</span></span></span></span></td><td><code>\varphi</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>φ</mi></mrow><annotation encoding="application/x-tex">\varphi</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.625em;vertical-align:-0.19444em;"></span><span class="mord mathdefault">φ</span></span></span></span></td></tr><tr><td><code>\eta</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>η</mi></mrow><annotation encoding="application/x-tex">\eta</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.625em;vertical-align:-0.19444em;"></span><span class="mord mathdefault" style="margin-right:0.03588em;">η</span></span></span></span></td><td></td><td style="text-align:center"></td><td></td><td style="text-align:center"></td></tr><tr><td><code>\lambda</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>λ</mi></mrow><annotation encoding="application/x-tex">\lambda</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.69444em;vertical-align:0em;"></span><span class="mord mathdefault">λ</span></span></span></span></td><td><code>\Lambda</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">Λ</mi></mrow><annotation encoding="application/x-tex">\Lambda</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.68333em;vertical-align:0em;"></span><span class="mord">Λ</span></span></span></span></td><td></td><td style="text-align:center"></td></tr><tr><td><code>\kappa</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>κ</mi></mrow><annotation encoding="application/x-tex">\kappa</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.43056em;vertical-align:0em;"></span><span class="mord mathdefault">κ</span></span></span></span></td><td></td><td style="text-align:center"></td><td></td><td style="text-align:center"></td></tr><tr><td><code>\nu</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>ν</mi></mrow><annotation encoding="application/x-tex">\nu</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.43056em;vertical-align:0em;"></span><span class="mord mathdefault" style="margin-right:0.06366em;">ν</span></span></span></span></td><td></td><td style="text-align:center"></td><td></td><td style="text-align:center"></td></tr><tr><td><code>\upsilon</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>υ</mi></mrow><annotation encoding="application/x-tex">\upsilon</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.43056em;vertical-align:0em;"></span><span class="mord mathdefault" style="margin-right:0.03588em;">υ</span></span></span></span></td><td><code>\Upsilon</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">Υ</mi></mrow><annotation encoding="application/x-tex">\Upsilon</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.68333em;vertical-align:0em;"></span><span class="mord">Υ</span></span></span></span></td><td></td><td style="text-align:center"></td></tr><tr><td><code>\psi</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>ψ</mi></mrow><annotation encoding="application/x-tex">\psi</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="mord mathdefault" style="margin-right:0.03588em;">ψ</span></span></span></span></td><td><code>\Psi</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">Ψ</mi></mrow><annotation encoding="application/x-tex">\Psi</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.68333em;vertical-align:0em;"></span><span class="mord">Ψ</span></span></span></span></td><td></td><td style="text-align:center"></td></tr><tr><td><code>\tau</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>τ</mi></mrow><annotation encoding="application/x-tex">\tau</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.43056em;vertical-align:0em;"></span><span class="mord mathdefault" style="margin-right:0.1132em;">τ</span></span></span></span></td><td></td><td style="text-align:center"></td><td></td><td style="text-align:center"></td></tr><tr><td><code>\iota</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>ι</mi></mrow><annotation encoding="application/x-tex">\iota</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.43056em;vertical-align:0em;"></span><span class="mord mathdefault">ι</span></span></span></span></td><td></td><td style="text-align:center"></td><td></td><td style="text-align:center"></td></tr></tbody></table><h2 id="常用特殊字符表"><a class="markdownIt-Anchor" href="#常用特殊字符表"></a> 常用特殊字符表</h2><table><thead><tr><th>代码</th><th style="text-align:center">符号</th><th>代码</th><th style="text-align:center">符号</th><th>代码</th><th style="text-align:center">符号</th><th>代码</th><th style="text-align:center">符号</th></tr></thead><tbody><tr><td><code>\times</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>×</mo></mrow><annotation encoding="application/x-tex">\times</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.66666em;vertical-align:-0.08333em;"></span><span class="mord">×</span></span></span></span></td><td><code>\div</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>÷</mo></mrow><annotation encoding="application/x-tex">\div</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.66666em;vertical-align:-0.08333em;"></span><span class="mord">÷</span></span></span></span></td><td><code>\pm</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>±</mo></mrow><annotation encoding="application/x-tex">\pm</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.66666em;vertical-align:-0.08333em;"></span><span class="mord">±</span></span></span></span></td><td><code>\mp</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>∓</mo></mrow><annotation encoding="application/x-tex">\mp</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.66666em;vertical-align:-0.08333em;"></span><span class="mord">∓</span></span></span></span></td></tr><tr><td><code>\otimes</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⊗</mo></mrow><annotation encoding="application/x-tex">\otimes</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.66666em;vertical-align:-0.08333em;"></span><span class="mord">⊗</span></span></span></span></td><td><code>\ominus</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⊖</mo></mrow><annotation encoding="application/x-tex">\ominus</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.66666em;vertical-align:-0.08333em;"></span><span class="mord">⊖</span></span></span></span></td><td><code>\oplus</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⊕</mo></mrow><annotation encoding="application/x-tex">\oplus</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.66666em;vertical-align:-0.08333em;"></span><span class="mord">⊕</span></span></span></span></td><td><code>\odot</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⊙</mo></mrow><annotation encoding="application/x-tex">\odot</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.66666em;vertical-align:-0.08333em;"></span><span class="mord">⊙</span></span></span></span></td></tr><tr><td><code>\oslash</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⊘</mo></mrow><annotation encoding="application/x-tex">\oslash</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.66666em;vertical-align:-0.08333em;"></span><span class="mord">⊘</span></span></span></span></td><td><code>\triangleq</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>≜</mo></mrow><annotation encoding="application/x-tex">\triangleq</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.99865em;vertical-align:-0.08198em;"></span><span class="mrel amsrm">≜</span></span></span></span></td><td><code>\ne</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">≠</mi></mrow><annotation encoding="application/x-tex">\ne</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="mrel"><span class="mrel"><span class="mord"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.69444em;"><span style="top:-3em;"><span class="pstrut" style="height:3em;"></span><span class="rlap"><span class="strut" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="inner"><span class="mrel"></span></span><span class="fix"></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.19444em;"><span></span></span></span></span></span></span><span class="mrel">=</span></span></span></span></span></td><td><code>\equiv</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>≡</mo></mrow><annotation encoding="application/x-tex">\equiv</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.46375em;vertical-align:0em;"></span><span class="mrel">≡</span></span></span></span></td></tr><tr><td><code>\lt</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>&lt;</mo></mrow><annotation encoding="application/x-tex">\lt</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.5782em;vertical-align:-0.0391em;"></span><span class="mrel">&lt;</span></span></span></span></td><td><code>\gt</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>&gt;</mo></mrow><annotation encoding="application/x-tex">\gt</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.5782em;vertical-align:-0.0391em;"></span><span class="mrel">&gt;</span></span></span></span></td><td><code>\le</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>≤</mo></mrow><annotation encoding="application/x-tex">\le</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7719400000000001em;vertical-align:-0.13597em;"></span><span class="mrel">≤</span></span></span></span></td><td><code>\ge</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>≥</mo></mrow><annotation encoding="application/x-tex">\ge</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7719400000000001em;vertical-align:-0.13597em;"></span><span class="mrel">≥</span></span></span></span></td></tr><tr><td><code>\cup</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>∪</mo></mrow><annotation encoding="application/x-tex">\cup</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.55556em;vertical-align:0em;"></span><span class="mord">∪</span></span></span></span></td><td><code>\cap</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>∩</mo></mrow><annotation encoding="application/x-tex">\cap</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.55556em;vertical-align:0em;"></span><span class="mord">∩</span></span></span></span></td><td><code>\Cup</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⋓</mo></mrow><annotation encoding="application/x-tex">\Cup</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.54986em;vertical-align:0em;"></span><span class="mord amsrm">⋓</span></span></span></span></td><td><code>\Cap</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⋒</mo></mrow><annotation encoding="application/x-tex">\Cap</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.54986em;vertical-align:0em;"></span><span class="mord amsrm">⋒</span></span></span></span></td></tr><tr><td><code>\bigcup</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⋃</mo></mrow><annotation encoding="application/x-tex">\bigcup</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.00001em;vertical-align:-0.25001em;"></span><span class="mop op-symbol small-op" style="position:relative;top:-0.0000050000000000050004em;">⋃</span></span></span></span></td><td><code>\bigcap</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⋂</mo></mrow><annotation encoding="application/x-tex">\bigcap</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.00001em;vertical-align:-0.25001em;"></span><span class="mop op-symbol small-op" style="position:relative;top:-0.0000050000000000050004em;">⋂</span></span></span></span></td><td><code>\ast</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>∗</mo></mrow><annotation encoding="application/x-tex">\ast</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.46528em;vertical-align:0em;"></span><span class="mord">∗</span></span></span></span></td><td><code>\star</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⋆</mo></mrow><annotation encoding="application/x-tex">\star</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.46528em;vertical-align:0em;"></span><span class="mord">⋆</span></span></span></span></td></tr><tr><td><code>\bigotimes</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⨂</mo></mrow><annotation encoding="application/x-tex">\bigotimes</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.00001em;vertical-align:-0.25001em;"></span><span class="mop op-symbol small-op" style="position:relative;top:-0.0000050000000000050004em;">⨂</span></span></span></span></td><td><code>\bigoplus</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⨁</mo></mrow><annotation encoding="application/x-tex">\bigoplus</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.00001em;vertical-align:-0.25001em;"></span><span class="mop op-symbol small-op" style="position:relative;top:-0.0000050000000000050004em;">⨁</span></span></span></span></td><td><code>\circ</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>∘</mo></mrow><annotation encoding="application/x-tex">\circ</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.44445em;vertical-align:0em;"></span><span class="mord">∘</span></span></span></span></td><td><code>\bullet</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>∙</mo></mrow><annotation encoding="application/x-tex">\bullet</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.44445em;vertical-align:0em;"></span><span class="mord">∙</span></span></span></span></td></tr><tr><td><code>\bigcirc</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>◯</mo></mrow><annotation encoding="application/x-tex">\bigcirc</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="mord">◯</span></span></span></span></td><td><code>\amalg</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⨿</mo></mrow><annotation encoding="application/x-tex">\amalg</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.68333em;vertical-align:0em;"></span><span class="mord">⨿</span></span></span></span></td><td><code>\to</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>→</mo></mrow><annotation encoding="application/x-tex">\to</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.36687em;vertical-align:0em;"></span><span class="mrel">→</span></span></span></span></td><td><code>\infty</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">∞</mi></mrow><annotation encoding="application/x-tex">\infty</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.43056em;vertical-align:0em;"></span><span class="mord">∞</span></span></span></span></td></tr><tr><td><code>\vee</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>∨</mo></mrow><annotation encoding="application/x-tex">\vee</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.55556em;vertical-align:0em;"></span><span class="mord">∨</span></span></span></span></td><td><code>\wedge</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>∧</mo></mrow><annotation encoding="application/x-tex">\wedge</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.55556em;vertical-align:0em;"></span><span class="mord">∧</span></span></span></span></td><td><code>\lhd</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⊲</mo></mrow><annotation encoding="application/x-tex">\lhd</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.58503em;vertical-align:-0.03517em;"></span><span class="mord amsrm">⊲</span></span></span></span></td><td><code>\rhd</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⊳</mo></mrow><annotation encoding="application/x-tex">\rhd</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.58503em;vertical-align:-0.03517em;"></span><span class="mord amsrm">⊳</span></span></span></span></td></tr><tr><td><code>\bigvee</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⋁</mo></mrow><annotation encoding="application/x-tex">\bigvee</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.00001em;vertical-align:-0.25001em;"></span><span class="mop op-symbol small-op" style="position:relative;top:-0.0000050000000000050004em;">⋁</span></span></span></span></td><td><code>\bigwedge</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⋀</mo></mrow><annotation encoding="application/x-tex">\bigwedge</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.00001em;vertical-align:-0.25001em;"></span><span class="mop op-symbol small-op" style="position:relative;top:-0.0000050000000000050004em;">⋀</span></span></span></span></td><td><code>\unlhd</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⊴</mo></mrow><annotation encoding="application/x-tex">\unlhd</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7733399999999999em;vertical-align:-0.13667em;"></span><span class="mord amsrm">⊴</span></span></span></span></td><td><code>\unrhd</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⊵</mo></mrow><annotation encoding="application/x-tex">\unrhd</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7733399999999999em;vertical-align:-0.13667em;"></span><span class="mord amsrm">⊵</span></span></span></span></td></tr><tr><td><code>\sqcap</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⊓</mo></mrow><annotation encoding="application/x-tex">\sqcap</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.55556em;vertical-align:0em;"></span><span class="mord">⊓</span></span></span></span></td><td><code>\sqcup</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⊔</mo></mrow><annotation encoding="application/x-tex">\sqcup</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.55556em;vertical-align:0em;"></span><span class="mord">⊔</span></span></span></span></td><td><code>\prec</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>≺</mo></mrow><annotation encoding="application/x-tex">\prec</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.5782em;vertical-align:-0.0391em;"></span><span class="mrel">≺</span></span></span></span></td><td><code>\succ</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>≻</mo></mrow><annotation encoding="application/x-tex">\succ</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.5782em;vertical-align:-0.0391em;"></span><span class="mrel">≻</span></span></span></span></td></tr><tr><td><code>\subset</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⊂</mo></mrow><annotation encoding="application/x-tex">\subset</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.5782em;vertical-align:-0.0391em;"></span><span class="mrel">⊂</span></span></span></span></td><td><code>\supset</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⊃</mo></mrow><annotation encoding="application/x-tex">\supset</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.5782em;vertical-align:-0.0391em;"></span><span class="mrel">⊃</span></span></span></span></td><td><code>\sim</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>∼</mo></mrow><annotation encoding="application/x-tex">\sim</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.36687em;vertical-align:0em;"></span><span class="mrel">∼</span></span></span></span></td><td><code>\approx</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>≈</mo></mrow><annotation encoding="application/x-tex">\approx</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.48312em;vertical-align:0em;"></span><span class="mrel">≈</span></span></span></span></td></tr><tr><td><code>\subseteq</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⊆</mo></mrow><annotation encoding="application/x-tex">\subseteq</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7719400000000001em;vertical-align:-0.13597em;"></span><span class="mrel">⊆</span></span></span></span></td><td><code>\supseteq</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⊇</mo></mrow><annotation encoding="application/x-tex">\supseteq</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7719400000000001em;vertical-align:-0.13597em;"></span><span class="mrel">⊇</span></span></span></span></td><td><code>\cong</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>≅</mo></mrow><annotation encoding="application/x-tex">\cong</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.589em;vertical-align:0em;"></span><span class="mrel">≅</span></span></span></span></td><td><code>\doteq</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>≐</mo></mrow><annotation encoding="application/x-tex">\doteq</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.67em;vertical-align:0em;"></span><span class="mrel">≐</span></span></span></span></td></tr><tr><td><code>\setminus</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>∖</mo></mrow><annotation encoding="application/x-tex">\setminus</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord">∖</span></span></span></span></td><td><code>\mid</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>∣</mo></mrow><annotation encoding="application/x-tex">\mid</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mrel">∣</span></span></span></span></td><td><code>\ll</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>≪</mo></mrow><annotation encoding="application/x-tex">\ll</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.5782em;vertical-align:-0.0391em;"></span><span class="mrel">≪</span></span></span></span></td><td><code>\gg</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>≫</mo></mrow><annotation encoding="application/x-tex">\gg</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.5782em;vertical-align:-0.0391em;"></span><span class="mrel">≫</span></span></span></span></td></tr><tr><td><code>\parallel</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>∥</mo></mrow><annotation encoding="application/x-tex">\parallel</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mrel">∥</span></span></span></span></td><td><code>\Join</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⋈</mo></mrow><annotation encoding="application/x-tex">\Join</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.51em;vertical-align:-0.005em;"></span><span class="mrel">⋈</span></span></span></span></td><td><code>\in</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>∈</mo></mrow><annotation encoding="application/x-tex">\in</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.5782em;vertical-align:-0.0391em;"></span><span class="mrel">∈</span></span></span></span></td><td><code>\notin</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">∉</mi></mrow><annotation encoding="application/x-tex">\notin</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mrel"><span class="mord"><span class="mrel">∈</span></span><span class="mord"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.75em;"><span style="top:-3em;"><span class="pstrut" style="height:3em;"></span><span class="llap"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="inner"><span class="mord"><span class="mord">/</span><span class="mspace" style="margin-right:0.05555555555555555em;"></span></span></span><span class="fix"></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.25em;"><span></span></span></span></span></span></span></span></span></span></td></tr><tr><td><code>\propto</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>∝</mo></mrow><annotation encoding="application/x-tex">\propto</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.43056em;vertical-align:0em;"></span><span class="mrel">∝</span></span></span></span></td><td><code>\neg</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">¬</mi></mrow><annotation encoding="application/x-tex">\neg</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.43056em;vertical-align:0em;"></span><span class="mord">¬</span></span></span></span></td><td><code>\ldots</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>…</mo></mrow><annotation encoding="application/x-tex">\ldots</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.12em;vertical-align:0em;"></span><span class="minner">…</span></span></span></span></td><td><code>\cdots</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⋯</mo></mrow><annotation encoding="application/x-tex">\cdots</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.31em;vertical-align:0em;"></span><span class="minner">⋯</span></span></span></span></td></tr><tr><td><code>\forall</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">∀</mi></mrow><annotation encoding="application/x-tex">\forall</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.69444em;vertical-align:0em;"></span><span class="mord">∀</span></span></span></span></td><td><code>\exists</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">∃</mi></mrow><annotation encoding="application/x-tex">\exists</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.69444em;vertical-align:0em;"></span><span class="mord">∃</span></span></span></span></td><td><code>\vdots</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">⋮</mi><mpadded height="+0em" voffset="0em"><mspace mathbackground="black" width="0em" height="1.5em"></mspace></mpadded></mrow><annotation encoding="application/x-tex">\vdots</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.53em;vertical-align:-0.03em;"></span><span class="mord"><span class="mord">⋮</span><span class="mord rule" style="border-right-width:0em;border-top-width:1.5em;bottom:0em;"></span></span></span></span></span></td><td><code>\ddots</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⋱</mo></mrow><annotation encoding="application/x-tex">\ddots</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.82em;vertical-align:0em;"></span><span class="minner">⋱</span></span></span></span></td></tr><tr><td><code>\aleph</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">ℵ</mi></mrow><annotation encoding="application/x-tex">\aleph</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.69444em;vertical-align:0em;"></span><span class="mord">ℵ</span></span></span></span></td><td><code>\nabla</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">∇</mi></mrow><annotation encoding="application/x-tex">\nabla</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.68333em;vertical-align:0em;"></span><span class="mord">∇</span></span></span></span></td><td><code>\imath</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>ı</mi></mrow><annotation encoding="application/x-tex">\imath</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.43056em;vertical-align:0em;"></span><span class="mord mathit latin_fallback">ı</span></span></span></span></td><td><code>\jmath</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>ȷ</mi></mrow><annotation encoding="application/x-tex">\jmath</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.625em;vertical-align:-0.19444em;"></span><span class="mord mathit latin_fallback">ȷ</span></span></span></span></td></tr><tr><td><code>\ell</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">ℓ</mi></mrow><annotation encoding="application/x-tex">\ell</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.69444em;vertical-align:0em;"></span><span class="mord">ℓ</span></span></span></span></td><td><code>\partial</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">∂</mi></mrow><annotation encoding="application/x-tex">\partial</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.69444em;vertical-align:0em;"></span><span class="mord" style="margin-right:0.05556em;">∂</span></span></span></span></td><td><code>\int</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>∫</mo></mrow><annotation encoding="application/x-tex">\int</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.11112em;vertical-align:-0.30612em;"></span><span class="mop op-symbol small-op" style="margin-right:0.19445em;position:relative;top:-0.0005599999999999772em;">∫</span></span></span></span></td><td><code>\oint</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>∮</mo></mrow><annotation encoding="application/x-tex">\oint</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.11112em;vertical-align:-0.30612em;"></span><span class="mop op-symbol small-op" style="margin-right:0.19445em;position:relative;top:-0.0005599999999999772em;">∮</span></span></span></span></td></tr><tr><td><code>\uplus</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⊎</mo></mrow><annotation encoding="application/x-tex">\uplus</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.55556em;vertical-align:0em;"></span><span class="mord">⊎</span></span></span></span></td><td><code>\biguplus</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⨄</mo></mrow><annotation encoding="application/x-tex">\biguplus</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.00001em;vertical-align:-0.25001em;"></span><span class="mop op-symbol small-op" style="position:relative;top:-0.0000050000000000050004em;">⨄</span></span></span></span></td><td></td><td style="text-align:center"></td><td></td><td style="text-align:center"></td></tr></tbody></table><h2 id="其他"><a class="markdownIt-Anchor" href="#其他"></a> 其他</h2><table><thead><tr><th>代码</th><th style="text-align:center">符号</th><th>代码</th><th style="text-align:center">符号</th></tr></thead><tbody><tr><td><code>\triangleleft</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>◃</mo></mrow><annotation encoding="application/x-tex">\triangleleft</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.46528em;vertical-align:0em;"></span><span class="mord">◃</span></span></span></span></td><td><code>\triangleright</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>▹</mo></mrow><annotation encoding="application/x-tex">\triangleright</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.46528em;vertical-align:0em;"></span><span class="mord">▹</span></span></span></span></td></tr><tr><td><code>\bigtriangleup</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>△</mo></mrow><annotation encoding="application/x-tex">\bigtriangleup</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="mord">△</span></span></span></span></td><td><code>\bigtriangledown</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>▽</mo></mrow><annotation encoding="application/x-tex">\bigtriangledown</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="mord">▽</span></span></span></span></td></tr><tr><td><code>\uparrow</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>↑</mo></mrow><annotation encoding="application/x-tex">\uparrow</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="mrel">↑</span></span></span></span></td><td><code>\downarrow</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>↓</mo></mrow><annotation encoding="application/x-tex">\downarrow</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="mrel">↓</span></span></span></span></td></tr><tr><td><code>\leftarrow</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>←</mo></mrow><annotation encoding="application/x-tex">\leftarrow</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.36687em;vertical-align:0em;"></span><span class="mrel">←</span></span></span></span></td><td><code>\rightarrow</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>→</mo></mrow><annotation encoding="application/x-tex">\rightarrow</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.36687em;vertical-align:0em;"></span><span class="mrel">→</span></span></span></span></td></tr><tr><td><code>\Leftarrow</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⇐</mo></mrow><annotation encoding="application/x-tex">\Leftarrow</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.36687em;vertical-align:0em;"></span><span class="mrel">⇐</span></span></span></span></td><td><code>\Rightarrow</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⇒</mo></mrow><annotation encoding="application/x-tex">\Rightarrow</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.36687em;vertical-align:0em;"></span><span class="mrel">⇒</span></span></span></span></td></tr><tr><td><code>\longleftarrow</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⟵</mo></mrow><annotation encoding="application/x-tex">\longleftarrow</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.522em;vertical-align:-0.011em;"></span><span class="mrel">⟵</span></span></span></span></td><td><code>\longrightarrow</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⟶</mo></mrow><annotation encoding="application/x-tex">\longrightarrow</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.522em;vertical-align:-0.011em;"></span><span class="mrel">⟶</span></span></span></span></td></tr><tr><td><code>\Longleftarrow</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⟸</mo></mrow><annotation encoding="application/x-tex">\Longleftarrow</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.549em;vertical-align:-0.024em;"></span><span class="mrel">⟸</span></span></span></span></td><td><code>\Longrightarrow</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⟹</mo></mrow><annotation encoding="application/x-tex">\Longrightarrow</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.549em;vertical-align:-0.024em;"></span><span class="mrel">⟹</span></span></span></span></td></tr><tr><td><code>\leftrightarrow</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>↔</mo></mrow><annotation encoding="application/x-tex">\leftrightarrow</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.36687em;vertical-align:0em;"></span><span class="mrel">↔</span></span></span></span></td><td><code>\longleftrightarrow</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⟷</mo></mrow><annotation encoding="application/x-tex">\longleftrightarrow</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.522em;vertical-align:-0.011em;"></span><span class="mrel">⟷</span></span></span></span></td></tr><tr><td><code>\Leftrightarrow</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⇔</mo></mrow><annotation encoding="application/x-tex">\Leftrightarrow</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.36687em;vertical-align:0em;"></span><span class="mrel">⇔</span></span></span></span></td><td><code>\Longleftrightarrow</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⟺</mo></mrow><annotation encoding="application/x-tex">\Longleftrightarrow</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.549em;vertical-align:-0.024em;"></span><span class="mrel">⟺</span></span></span></span></td></tr><tr><td><code>\leftharpoonup</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>↼</mo></mrow><annotation encoding="application/x-tex">\leftharpoonup</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.36687em;vertical-align:0em;"></span><span class="mrel">↼</span></span></span></span></td><td><code>\rightharpoonup</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⇀</mo></mrow><annotation encoding="application/x-tex">\rightharpoonup</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.36687em;vertical-align:0em;"></span><span class="mrel">⇀</span></span></span></span></td></tr><tr><td><code>\leftharpoondown</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>↽</mo></mrow><annotation encoding="application/x-tex">\leftharpoondown</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.36687em;vertical-align:0em;"></span><span class="mrel">↽</span></span></span></span></td><td><code>\rightharpoondown</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⇁</mo></mrow><annotation encoding="application/x-tex">\rightharpoondown</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.36687em;vertical-align:0em;"></span><span class="mrel">⇁</span></span></span></span></td></tr><tr><td><code>\rightleftharpoons</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⇌</mo></mrow><annotation encoding="application/x-tex">\rightleftharpoons</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.682em;vertical-align:-0.011em;"></span><span class="mrel">⇌</span></span></span></span></td><td><code>\S</code></td><td style="text-align:center">\S</td></tr><tr><td><code>\nwarrow</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>↖</mo></mrow><annotation encoding="application/x-tex">\nwarrow</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="mrel">↖</span></span></span></span></td><td><code>\nearrow</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>↗</mo></mrow><annotation encoding="application/x-tex">\nearrow</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="mrel">↗</span></span></span></span></td></tr><tr><td><code>\swarrow</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>↙</mo></mrow><annotation encoding="application/x-tex">\swarrow</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="mrel">↙</span></span></span></span></td><td><code>\searrow</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>↘</mo></mrow><annotation encoding="application/x-tex">\searrow</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="mrel">↘</span></span></span></span></td></tr><tr><td><code>\triangle</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">△</mi></mrow><annotation encoding="application/x-tex">\triangle</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="mord">△</span></span></span></span></td><td><code>\box</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">□</mi></mrow><annotation encoding="application/x-tex">\Box</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.675em;vertical-align:0em;"></span><span class="mord amsrm">□</span></span></span></span></td></tr><tr><td><code>\diamond</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>⋄</mo></mrow><annotation encoding="application/x-tex">\diamond</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.44445em;vertical-align:0em;"></span><span class="mord">⋄</span></span></span></span></td><td><code>\diamondsuit</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">♢</mi></mrow><annotation encoding="application/x-tex">\diamondsuit</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.82407em;vertical-align:-0.12963em;"></span><span class="mord">♢</span></span></span></span></td></tr><tr><td><code>\heartsuit</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">♡</mi></mrow><annotation encoding="application/x-tex">\heartsuit</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.82407em;vertical-align:-0.12963em;"></span><span class="mord">♡</span></span></span></span></td><td><code>\clubsuit</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">♣</mi></mrow><annotation encoding="application/x-tex">\clubsuit</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.82407em;vertical-align:-0.12963em;"></span><span class="mord">♣</span></span></span></span></td></tr><tr><td><code>\spadesuit</code></td><td style="text-align:center"><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi mathvariant="normal">♠</mi></mrow><annotation encoding="application/x-tex">\spadesuit</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.82407em;vertical-align:-0.12963em;"></span><span class="mord">♠</span></span></span></span></td><td></td><td style="text-align:center"></td></tr></tbody></table><h1 id="在线latex数学公式"><a class="markdownIt-Anchor" href="#在线latex数学公式"></a> 在线latex数学公式</h1><p>利用“<a href="http://latex.codecogs.com/eqneditor/editor.php" target="_blank" rel="noopener">在线latex数学公式</a>”来帮助生成数学公式代码,可以帮助我们更快的完成公式的书写。</p>]]></content>
<categories>
<category> 学习 </category>
<category> 折腾 </category>
<category> blog </category>
</categories>
<tags>
<tag> 笔记 </tag>
<tag> markdown </tag>
</tags>
</entry>
<entry>
<title>基于leancloud的文章访客统计修复</title>
<link href="/post/aecd2f31.html"/>
<url>/post/aecd2f31.html</url>
<content type="html"><![CDATA[<h3 id="背景"><a class="markdownIt-Anchor" href="#背景"></a> 背景</h3><p>在折腾添加leancloud的文章访客统计时,在站点页面显示为Counter not initialized! See more at console err msg.查阅资料寻得解决方案<a id="more"></a><br>在<a href="https://leaferx.online/2018/02/11/lc-security/" target="_blank" rel="noopener">Leancloud访客统计插件重大安全漏洞修复指南</a>一文中已经给出了解决方案。只要按照步骤走,基本没有问题。</p><h3 id="我出现的问题"><a class="markdownIt-Anchor" href="#我出现的问题"></a> 我出现的问题</h3><h4 id="1-缺失regenerator以及babel-runtime模块"><a class="markdownIt-Anchor" href="#1-缺失regenerator以及babel-runtime模块"></a> 1. 缺失<code>regenerator</code>以及<code>babel-runtime</code>模块</h4><p>在执行到这一步时没有问题</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">bash</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install hexo-leancloud-counter-security --save</span><br></pre></td></tr></table></figure></div><p>但这一步时提示我有缺失模块<code>regenerator</code>以及<code>babel-runtime</code></p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">bash</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo lc-counter register &lt;&lt;username&gt;&gt; &lt;&lt;password&gt;&gt;</span><br></pre></td></tr></table></figure></div><p>或</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">bash</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo lc-counter r &lt;&lt;username&gt;&gt; &lt;&lt;password&gt;&gt;</span><br></pre></td></tr></table></figure></div><h4 id="2-valine评论与文章访客统计相冲突"><a class="markdownIt-Anchor" href="#2-valine评论与文章访客统计相冲突"></a> 2. valine评论与文章访客统计相冲突</h4><h3 id="解决方法"><a class="markdownIt-Anchor" href="#解决方法"></a> 解决方法</h3><h4 id="1-解决缺失regenerator以及babel-runtime模块"><a class="markdownIt-Anchor" href="#1-解决缺失regenerator以及babel-runtime模块"></a> 1. 解决缺失<code>regenerator</code>以及<code>babel-runtime</code>模块</h4><p>在博客根目录下执行这两个命令即可</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">bash</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">npm install regenerator --save</span><br><span class="line">npm install babel-runtime --save</span><br></pre></td></tr></table></figure></div><p>之后按照参考资料:<a href="https://leaferx.online/2018/02/11/lc-security/" target="_blank" rel="noopener">Leancloud访客统计插件重大安全漏洞修复指南</a> 完成就没事了</p><h4 id="2-解决valine评论与文章访客统计相冲突"><a class="markdownIt-Anchor" href="#2-解决valine评论与文章访客统计相冲突"></a> 2. 解决valine评论与文章访客统计相冲突</h4><p>在leancloud中注册创建一个新应用,让valine评论与文章访客统计为两个不相干的应用即可</p>]]></content>
<categories>
<category> 学习 </category>
<category> 折腾 </category>
</categories>
<tags>
<tag> leancloud </tag>
<tag> 访客 </tag>
</tags>
</entry>
<entry>
<title>hexo博客添加相册功能</title>
<link href="/post/24981.html"/>
<url>/post/24981.html</url>
<content type="html"><![CDATA[<p>两周前开始,我就一直想在yilia主题下实现一个相册功能,终于让我找到一个好方法了。<a id="more"></a></p><h2 id="背景"><a class="markdownIt-Anchor" href="#背景"></a> 背景</h2><p>​在走进hexo搭建博客这个坑之后,一直想实现相册功能。但是。。。我就是一个比小白还白的百中白啊~怎么办呢?实力不够,google来凑。</p><p>​网络上大部分关于hexo yilia都是基于<a href="https://github.com/litten/BlogBackup/tree/master/source/photos" target="_blank" rel="noopener">litten大神的博客的相册样式</a>进行修改的。而我不知道什么原因,反正我是没成功。。。。。。终于皇天不负有心人,终于让我找到能较轻松实现相册功能的方法了。</p><h2 id="实现方法"><a class="markdownIt-Anchor" href="#实现方法"></a> 实现方法</h2><h3 id="原理"><a class="markdownIt-Anchor" href="#原理"></a> 原理</h3><p>腾讯云cos存储桶使用api在线获取相册的内容,再在博客相册显示</p><h4 id="效果如下"><a class="markdownIt-Anchor" href="#效果如下"></a> 效果如下</h4><p align="center"><a class="LinkCard" href="https://dive.tk/photos/" target="_blank">相册效果展示</a></p><h3 id="方法"><a class="markdownIt-Anchor" href="#方法"></a> 方法</h3><h4 id="创建腾讯云cos存储桶"><a class="markdownIt-Anchor" href="#创建腾讯云cos存储桶"></a> 创建腾讯云cos存储桶</h4><li>在[腾讯云](https://cloud.tencent.com/)注册\登录</li> <p>进入 产品—基础—存储—对象存储<img alt="进入对象存储.png" data-src="https://static.dy208.cn/o_1di7v39eg1572hkgo19ju08lia.png" class="lazyload">i</p><li>创建存储桶</li><p>填写存储桶名称,选择所属地区,访问权限选<b>共有读私有写</b>点击确定就可以了</p><h4 id="存储桶设置"><a class="markdownIt-Anchor" href="#存储桶设置"></a> 存储桶设置</h4><li>跨域访问CORS设置</li><p>基储配置中找到跨域访问CORS设置<img alt="跨域访问.jpg" data-src="https://static.dy208.cn/o_1di80hjdd1i9jrl5emq1j6i6lea.jpg" class="lazyload"></p><p>操作选择GET,来源Origin填写你的域名,带http或者https,其他默认不要填,如下图</p><p><img alt="o_1di80mv70rth4go8ljjgv17rna.jpg" data-src="https://static.dy208.cn/o_1di80mv70rth4go8ljjgv17rna.jpg" class="lazyload"></p><li>设置读写权限</li><p>在权限管理中设置 存储桶访问权限 为公有读私有写,一般按照我这来基本就不用动访问权限设置了,再将Policy权限保持为空。<img alt="o_1di8181261db2qfl24m1cij11foa.jpg" data-src="https://static.dy208.cn/o_1di8181261db2qfl24m1cij11foa.jpg" class="lazyload"></p><li>访问域名</li><p>记住访问域名,下面要用。<img alt="yuminga" data-src="https://static.dy208.cn/o_1di81dodcu9uoj5133d63o1737a.jpg" class="lazyload"></p><p>复制这个访问域名,看能不能在浏览器中打开,如果没有显示error节点,说明前面都操作对了</p><h4 id="上传照片"><a class="markdownIt-Anchor" href="#上传照片"></a> 上传照片</h4><p>上传照片方式有很多(推荐用coscmd命令行写个脚本),不过这里教程中你就直接上腾讯云后台上传就好了,想要其他骚操作等相册做好了再自己百度吧。</p><li>注意事项</li><ol><li>上传照片前,先在存储桶中建立一个文件夹,也就是你的相册名字,当然你也可以新建多个文件夹。</li><li>但是有一点需要需要注意的是,<strong>不能直接上传一个文件夹</strong>,那样会出bug,见完文件夹后往里面上传照片,文件夹里面不能再新建文件夹了(除非你自己改造下面的相应代码)</li><li>每个文件中需要一张命名为<strong>封面</strong>的图片,它会作为你的该文件夹相册的封面</li></ol><h4 id="hexo本地配置"><a class="markdownIt-Anchor" href="#hexo本地配置"></a> hexo本地配置</h4><p>建立一个相册页面</p><blockquote><p>hexo new page photos</p></blockquote><p>编辑blog/sources/photos/index.md文件添加以下代码</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">html</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br><span class="line">126</span><br><span class="line">127</span><br><span class="line">128</span><br><span class="line">129</span><br><span class="line">130</span><br><span class="line">131</span><br><span class="line">132</span><br><span class="line">133</span><br><span class="line">134</span><br><span class="line">135</span><br><span class="line">136</span><br><span class="line">137</span><br><span class="line">138</span><br><span class="line">139</span><br><span class="line">140</span><br><span class="line">141</span><br><span class="line">142</span><br><span class="line">143</span><br><span class="line">144</span><br><span class="line">145</span><br><span class="line">146</span><br><span class="line">147</span><br><span class="line">148</span><br><span class="line">149</span><br><span class="line">150</span><br><span class="line">151</span><br><span class="line">152</span><br><span class="line">153</span><br><span class="line">154</span><br><span class="line">155</span><br><span class="line">156</span><br><span class="line">157</span><br><span class="line">158</span><br><span class="line">159</span><br><span class="line">160</span><br><span class="line">161</span><br><span class="line">162</span><br><span class="line">163</span><br><span class="line">164</span><br><span class="line">165</span><br><span class="line">166</span><br><span class="line">167</span><br><span class="line">168</span><br><span class="line">169</span><br><span class="line">170</span><br><span class="line">171</span><br><span class="line">172</span><br><span class="line">173</span><br><span class="line">174</span><br><span class="line">175</span><br><span class="line">176</span><br><span class="line">177</span><br><span class="line">178</span><br><span class="line">179</span><br><span class="line">180</span><br><span class="line">181</span><br><span class="line">182</span><br><span class="line">183</span><br><span class="line">184</span><br><span class="line">185</span><br><span class="line">186</span><br><span class="line">187</span><br><span class="line">188</span><br><span class="line">189</span><br><span class="line">190</span><br><span class="line">191</span><br><span class="line">192</span><br><span class="line">193</span><br><span class="line">194</span><br><span class="line">195</span><br><span class="line">196</span><br><span class="line">197</span><br><span class="line">198</span><br><span class="line">199</span><br><span class="line">200</span><br><span class="line">201</span><br><span class="line">202</span><br><span class="line">203</span><br><span class="line">204</span><br><span class="line">205</span><br><span class="line">206</span><br><span class="line">207</span><br><span class="line">208</span><br><span class="line">209</span><br><span class="line">210</span><br><span class="line">211</span><br><span class="line">212</span><br><span class="line">213</span><br><span class="line">214</span><br><span class="line">215</span><br><span class="line">216</span><br><span class="line">217</span><br><span class="line">218</span><br><span class="line">219</span><br><span class="line">220</span><br><span class="line">221</span><br><span class="line">222</span><br><span class="line">223</span><br><span class="line">224</span><br><span class="line">225</span><br><span class="line">226</span><br><span class="line">227</span><br><span class="line">228</span><br><span class="line">229</span><br><span class="line">230</span><br><span class="line">231</span><br><span class="line">232</span><br><span class="line">233</span><br><span class="line">234</span><br><span class="line">235</span><br><span class="line">236</span><br><span class="line">237</span><br><span class="line">238</span><br><span class="line">239</span><br><span class="line">240</span><br><span class="line">241</span><br><span class="line">242</span><br><span class="line">243</span><br><span class="line">244</span><br><span class="line">245</span><br><span class="line">246</span><br><span class="line">247</span><br><span class="line">248</span><br><span class="line">249</span><br><span class="line">250</span><br><span class="line">251</span><br><span class="line">252</span><br><span class="line">253</span><br><span class="line">254</span><br><span class="line">255</span><br><span class="line">256</span><br><span class="line">257</span><br><span class="line">258</span><br><span class="line">259</span><br><span class="line">260</span><br><span class="line">261</span><br><span class="line">262</span><br><span class="line">263</span><br><span class="line">264</span><br><span class="line">265</span><br><span class="line">266</span><br><span class="line">267</span><br><span class="line">268</span><br><span class="line">269</span><br><span class="line">270</span><br><span class="line">271</span><br><span class="line">272</span><br><span class="line">273</span><br><span class="line">274</span><br><span class="line">275</span><br><span class="line">276</span><br><span class="line">277</span><br><span class="line">278</span><br><span class="line">279</span><br><span class="line">280</span><br><span class="line">281</span><br><span class="line">282</span><br><span class="line">283</span><br><span class="line">284</span><br><span class="line">285</span><br><span class="line">286</span><br><span class="line">287</span><br><span class="line">288</span><br><span class="line">289</span><br><span class="line">290</span><br><span class="line">291</span><br><span class="line">292</span><br><span class="line">293</span><br><span class="line">294</span><br><span class="line">295</span><br><span class="line">296</span><br><span class="line">297</span><br><span class="line">298</span><br><span class="line">299</span><br><span class="line">300</span><br><span class="line">301</span><br><span class="line">302</span><br><span class="line">303</span><br><span class="line">304</span><br><span class="line">305</span><br><span class="line">306</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">style</span> <span class="attr">type</span>=<span class="string">"text/css"</span>&gt;</span></span><br><span class="line"><span class="css"><span class="selector-class">.main-inner</span>&#123;</span></span><br><span class="line">width: 100%;</span><br><span class="line">&#125;</span><br><span class="line"><span class="css"><span class="selector-class">.main</span> &#123;</span></span><br><span class="line"> padding-bottom: 150px;</span><br><span class="line"> margin-top: 0px;</span><br><span class="line"><span class="css"> <span class="selector-tag">background</span>: <span class="selector-id">#121212</span>;</span></span><br><span class="line">&#125;</span><br><span class="line"><span class="css"><span class="selector-class">.main-inner</span>&#123;</span></span><br><span class="line">margin-top: unset;</span><br><span class="line">&#125;</span><br><span class="line"><span class="css"><span class="selector-class">.page-post-detail</span> <span class="selector-class">.post-meta</span>&#123;</span></span><br><span class="line">display: none;</span><br><span class="line">&#125;</span><br><span class="line">body &#123;</span><br><span class="line">background-image: unset;</span><br><span class="line">background-attachment: unset;</span><br><span class="line">background-size: 100%;</span><br><span class="line"><span class="css"><span class="comment">/*background-position: top left;*/</span></span></span><br><span class="line">&#125;</span><br><span class="line"><span class="css"><span class="selector-class">.header</span>&#123;</span></span><br><span class="line"><span class="css"><span class="selector-tag">background</span>: <span class="selector-tag">rgba</span>(28, 25, 25, 0<span class="selector-class">.6</span>);</span></span><br><span class="line">border-bottom: unset;</span><br><span class="line">&#125;</span><br><span class="line"><span class="css"><span class="selector-class">.menu</span> <span class="selector-class">.menu-item</span> <span class="selector-tag">a</span>&#123;</span></span><br><span class="line"> font-weight: 300;</span><br><span class="line"><span class="css"> <span class="selector-tag">color</span>: <span class="selector-id">#e6eaed</span>;</span></span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="css"><span class="selector-class">.imgbox</span>&#123;</span></span><br><span class="line"> width: 100%;</span><br><span class="line"> overflow: hidden;</span><br><span class="line"> height: 250px;</span><br><span class="line"><span class="css"> <span class="selector-tag">border-right</span>: 1<span class="selector-tag">px</span> <span class="selector-tag">solid</span> <span class="selector-id">#bcbcbc</span>;</span></span><br><span class="line">&#125;</span><br><span class="line"><span class="css"><span class="selector-class">.box</span>&#123;</span></span><br><span class="line">visibility: visible;</span><br><span class="line">overflow: auto; </span><br><span class="line">zoom: 1;</span><br><span class="line">&#125;</span><br><span class="line"><span class="css"><span class="selector-class">.box</span> <span class="selector-tag">li</span>&#123;</span></span><br><span class="line">float: left;</span><br><span class="line"> width: 25%;</span><br><span class="line"> position: relative;</span><br><span class="line"> overflow: hidden;</span><br><span class="line"> text-align: center;</span><br><span class="line"> list-style: none;</span><br><span class="line"> margin: 0;</span><br><span class="line"><span class="css"> <span class="comment">/*display: inline;*/</span></span></span><br><span class="line"> padding: 0;</span><br><span class="line"> height: 360px;</span><br><span class="line">&#125;</span><br><span class="line"><span class="css"><span class="selector-class">.box</span> <span class="selector-tag">li</span> <span class="selector-tag">span</span>&#123;</span></span><br><span class="line">display: block;</span><br><span class="line"> padding: 4% 7% 10% 7%;</span><br><span class="line"> min-height: 80px;</span><br><span class="line"><span class="css"> <span class="selector-tag">background</span>: <span class="selector-id">#fff</span>;</span></span><br><span class="line"><span class="css"> <span class="selector-tag">color</span>: <span class="selector-id">#fff</span>;</span></span><br><span class="line"> font-size: 16px;</span><br><span class="line"><span class="css"> <span class="selector-tag">background</span>: <span class="selector-id">#121212</span>;</span></span><br><span class="line"> font-weight: 600;</span><br><span class="line"> line-height: 26px;</span><br><span class="line"> -webkit-box-sizing: border-box;</span><br><span class="line"> box-sizing: border-box;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="css"><span class="selector-tag">img</span><span class="selector-class">.imgitem</span>&#123;</span></span><br><span class="line">padding: unset;</span><br><span class="line">padding: unset;</span><br><span class="line">border: unset;</span><br><span class="line">position: relative;</span><br><span class="line">padding: 0px;</span><br><span class="line">height: auto;</span><br><span class="line">width: 100%;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="css"><span class="selector-tag">div</span><span class="selector-id">#posts</span><span class="selector-class">.posts-expand</span> &#123;</span></span><br><span class="line"> border: unset;</span><br><span class="line"> padding: unset;</span><br><span class="line"> margin-bottom: 10px;</span><br><span class="line">&#125;</span><br><span class="line"><span class="css"><span class="selector-class">.posts-expand</span> <span class="selector-class">.post-body</span> <span class="selector-tag">img</span>&#123;</span></span><br><span class="line">padding: 0px !important;</span><br><span class="line">&#125;</span><br><span class="line"><span class="css"><span class="selector-class">.box</span> <span class="selector-tag">p</span>&#123;</span></span><br><span class="line">display: block;</span><br><span class="line"><span class="css"> <span class="selector-tag">background</span>: <span class="selector-id">#121212</span>;</span></span><br><span class="line"><span class="css"> <span class="selector-tag">color</span>: <span class="selector-id">#fff</span>;</span></span><br><span class="line"> font-size: 12px;</span><br><span class="line"> font-family: 'SwisMedium';</span><br><span class="line"> -webkit-box-sizing: border-box;</span><br><span class="line"> box-sizing: border-box;</span><br><span class="line"> text-align: center;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="css"><span class="selector-class">.box</span> <span class="selector-tag">span</span> <span class="selector-tag">strong</span>&#123;</span></span><br><span class="line"><span class="css"><span class="selector-tag">background</span>: <span class="selector-tag">rgba</span>(0,0,0,0<span class="selector-class">.4</span>);</span></span><br><span class="line">padding: 20px;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="css"><span class="selector-class">.posts-expand</span> <span class="selector-class">.post-title</span> &#123;</span></span><br><span class="line">display: none;</span><br><span class="line">&#125;</span><br><span class="line"><span class="css"><span class="selector-class">.title</span>&#123;</span></span><br><span class="line"> display: inline-block;</span><br><span class="line"> vertical-align: middle;</span><br><span class="line"> background: url(https://image.idealli.com/bg11.jpg);</span><br><span class="line"> font: 85px/250px 'ChaletComprimeMilanSixty';</span><br><span class="line"> background-position: left bottom !important;</span><br><span class="line"><span class="css"> <span class="selector-tag">color</span>: <span class="selector-id">#fff</span>;</span></span><br><span class="line"> background-size: 100% auto !important; </span><br><span class="line">-webkit-background-size: cover; </span><br><span class="line">-moz-background-size: cover;</span><br><span class="line">-o-background-size: cover;</span><br><span class="line"> width: 100%;</span><br><span class="line"> text-align: center;</span><br><span class="line"> border: unset;</span><br><span class="line"> height: 700px;</span><br><span class="line"> cursor: unset !important;</span><br><span class="line"> -webkit-box-sizing: border-box;</span><br><span class="line"> box-sizing: border-box;</span><br><span class="line">&#125;</span><br><span class="line"><span class="css"><span class="selector-class">.btn-more-posts</span>&#123;</span></span><br><span class="line">display: inline-block;</span><br><span class="line"> vertical-align: middle;</span><br><span class="line"> font: 85px/250px 'ChaletComprimeMilanSixty';</span><br><span class="line"><span class="css"> <span class="selector-tag">color</span>: <span class="selector-id">#000</span>;</span></span><br><span class="line"> width: 100%;</span><br><span class="line"> text-align: center;</span><br><span class="line"> border: unset;</span><br><span class="line"> height: 400px;</span><br><span class="line"><span class="css"> <span class="selector-tag">background-color</span>: <span class="selector-id">#121212</span>;</span></span><br><span class="line"> -webkit-box-sizing: border-box;</span><br><span class="line"> box-sizing: border-box;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="css"><span class="keyword">@media</span> (<span class="attribute">max-width:</span> <span class="number">767px</span>)&#123;</span></span><br><span class="line"><span class="css"><span class="selector-class">.box</span> <span class="selector-tag">li</span> &#123;</span></span><br><span class="line"> width: 100%;</span><br><span class="line">&#125;</span><br><span class="line"><span class="css"><span class="selector-class">.title</span> &#123;</span></span><br><span class="line"> height: 200px;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="css"><span class="selector-class">.box</span> <span class="selector-tag">span</span> &#123;</span></span><br><span class="line"> min-height: 80px;</span><br><span class="line"> border-right: unset;</span><br><span class="line"> font-size: 17px;</span><br><span class="line">&#125;</span><br><span class="line"><span class="css"><span class="selector-class">.box</span> <span class="selector-tag">p</span>&#123;</span></span><br><span class="line"> border-right: unset;</span><br><span class="line"> font-size: 12px;</span><br><span class="line"> </span><br><span class="line">&#125;</span><br><span class="line"><span class="css"><span class="selector-class">.posts-expand</span> &#123;</span></span><br><span class="line"> margin: unset;</span><br><span class="line">&#125;</span><br><span class="line"><span class="css"><span class="selector-tag">div</span><span class="selector-id">#comments</span><span class="selector-class">.comments</span><span class="selector-class">.v</span> &#123;</span></span><br><span class="line"> width: 96%;</span><br><span class="line"> padding-top: 50px;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="css"><span class="keyword">@media</span> (<span class="attribute">min-width:</span> <span class="number">1600px</span>)&#123;</span></span><br><span class="line"><span class="css"><span class="selector-class">.container</span> <span class="selector-class">.main-inner</span>&#123;</span></span><br><span class="line">width: 100%;</span><br><span class="line">&#125;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="css"><span class="selector-class">.footer</span>&#123;</span></span><br><span class="line"><span class="css"><span class="selector-tag">background-color</span>: <span class="selector-id">#121212</span> !<span class="selector-tag">important</span>;</span></span><br><span class="line">&#125;</span><br><span class="line"><span class="css"><span class="selector-class">.v</span> * &#123;</span></span><br><span class="line"><span class="css"> <span class="selector-tag">color</span>: <span class="selector-id">#f4f4f4</span> !<span class="selector-tag">important</span>;</span></span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="css"><span class="selector-class">.v</span> <span class="selector-class">.vwrap</span> <span class="selector-class">.vmark</span> <span class="selector-class">.valert</span> <span class="selector-class">.vcode</span> &#123;</span></span><br><span class="line"><span class="css"> <span class="selector-tag">background</span>: <span class="selector-id">#00050b</span> !<span class="selector-tag">important</span>;</span></span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="tag">&lt;/<span class="name">style</span>&gt;</span></span><br><span class="line"></span><br><span class="line"><span class="tag">&lt;<span class="name">div</span> <span class="attr">id</span>=<span class="string">"box"</span> <span class="attr">class</span>=<span class="string">"box"</span>&gt;</span><span class="tag">&lt;/<span class="name">div</span>&gt;</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="tag">&lt;<span class="name">script</span> <span class="attr">type</span>=<span class="string">"text/javascript"</span>&gt;</span></span><br><span class="line"></span><br><span class="line"><span class="actionscript"><span class="function"><span class="keyword">function</span> <span class="title">loadXMLDoc</span><span class="params">(xmlUrl)</span> </span></span></span><br><span class="line">&#123;</span><br><span class="line"><span class="actionscript"><span class="keyword">try</span> <span class="comment">//Internet Explorer</span></span></span><br><span class="line">&#123;</span><br><span class="line"><span class="actionscript">xmlDoc=<span class="keyword">new</span> ActiveXObject(<span class="string">"Microsoft.XMLDOM"</span>);</span></span><br><span class="line">&#125;</span><br><span class="line"><span class="actionscript"><span class="keyword">catch</span>(e)</span></span><br><span class="line">&#123;</span><br><span class="line"><span class="actionscript"> <span class="keyword">try</span> <span class="comment">//Firefox, Mozilla, Opera, etc.</span></span></span><br><span class="line"> &#123;</span><br><span class="line"><span class="javascript"> xmlDoc=<span class="built_in">document</span>.implementation.createDocument(<span class="string">""</span>,<span class="string">""</span>,<span class="literal">null</span>);</span></span><br><span class="line"> &#125;</span><br><span class="line"><span class="actionscript"> <span class="keyword">catch</span>(e) &#123;alert(e.message)&#125;</span></span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="actionscript"><span class="keyword">try</span> </span></span><br><span class="line">&#123;</span><br><span class="line"><span class="actionscript"> xmlDoc.async=<span class="literal">false</span>;</span></span><br><span class="line"> xmlDoc.load(xmlUrl);</span><br><span class="line">&#125;</span><br><span class="line"><span class="actionscript"><span class="keyword">catch</span>(e) &#123;</span></span><br><span class="line"><span class="actionscript"><span class="keyword">try</span> <span class="comment">//Google Chrome </span></span></span><br><span class="line"> &#123; </span><br><span class="line"><span class="actionscript"><span class="keyword">var</span> chromeXml = <span class="keyword">new</span> XMLHttpRequest();</span></span><br><span class="line"><span class="actionscript">chromeXml.open(<span class="string">"GET"</span>, xmlUrl, <span class="literal">false</span>);</span></span><br><span class="line"><span class="actionscript">chromeXml.send(<span class="literal">null</span>);</span></span><br><span class="line">xmlDoc = chromeXml.responseXML.documentElement; </span><br><span class="line"><span class="actionscript"><span class="comment">//alert(xmlDoc.childNodes[0].nodeName);</span></span></span><br><span class="line"><span class="actionscript"><span class="comment">//return xmlDoc; </span></span></span><br><span class="line"> &#125; </span><br><span class="line"><span class="actionscript"> <span class="keyword">catch</span>(e) </span></span><br><span class="line"> &#123; </span><br><span class="line"> alert(e.message) </span><br><span class="line"> &#125; </span><br><span class="line">&#125;</span><br><span class="line"><span class="actionscript"><span class="keyword">return</span> xmlDoc; </span></span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="actionscript"><span class="keyword">var</span> xmllink=<span class="string">"你的访问域名链接"</span></span></span><br><span class="line"><span class="actionscript"><span class="comment">//访问域名链接就是我上面提到的那个访问域名xml链接</span></span></span><br><span class="line"></span><br><span class="line">xmlDoc=loadXMLDoc(xmllink);</span><br><span class="line"><span class="actionscript"><span class="keyword">var</span> urls=xmlDoc.getElementsByTagName(<span class="string">'Key'</span>);</span></span><br><span class="line"><span class="actionscript"><span class="keyword">var</span> date=xmlDoc.getElementsByTagName(<span class="string">'LastModified'</span>);</span></span><br><span class="line"><span class="actionscript"><span class="keyword">var</span> wid=<span class="number">250</span>;</span></span><br><span class="line"><span class="actionscript"><span class="keyword">var</span> showNum=<span class="number">12</span>; <span class="comment">//每个相册一次展示多少照片</span></span></span><br><span class="line"><span class="javascript"><span class="keyword">if</span> ((<span class="built_in">window</span>.innerWidth)&gt;<span class="number">1200</span>) &#123;wid=(<span class="built_in">window</span>.innerWidth*<span class="number">3</span>)/<span class="number">18</span>;&#125;</span></span><br><span class="line"><span class="javascript"><span class="keyword">var</span> box=<span class="built_in">document</span>.getElementById(<span class="string">'box'</span>);</span></span><br><span class="line"><span class="actionscript"><span class="keyword">var</span> i=<span class="number">0</span>;</span></span><br><span class="line"></span><br><span class="line"><span class="javascript"><span class="keyword">var</span> content=<span class="keyword">new</span> <span class="built_in">Array</span>();</span></span><br><span class="line"><span class="actionscript"><span class="keyword">var</span> tmp=<span class="number">0</span>;</span></span><br><span class="line"><span class="actionscript"><span class="keyword">var</span> kkk=<span class="number">-1</span>;</span></span><br><span class="line"><span class="actionscript"><span class="keyword">for</span> (<span class="keyword">var</span> t = <span class="number">0</span>; t &lt; urls.length ; t++) &#123;</span></span><br><span class="line"><span class="actionscript"><span class="keyword">var</span> bucket=urls[t].innerHTML;</span></span><br><span class="line"><span class="actionscript"><span class="keyword">var</span> length=bucket.indexOf(<span class="string">'/'</span>);</span></span><br><span class="line">if(length===bucket.length-1)&#123;</span><br><span class="line">kkk++;</span><br><span class="line"><span class="javascript">content[kkk]=<span class="keyword">new</span> <span class="built_in">Array</span>();</span></span><br><span class="line"><span class="actionscript">content[kkk][<span class="number">0</span>]=&#123;<span class="string">'url'</span>:bucket,<span class="string">'date'</span>:date[t].innerHTML.substring(<span class="number">0</span>,<span class="number">10</span>)&#125;;</span></span><br><span class="line">tmp=1;</span><br><span class="line">&#125;</span><br><span class="line"><span class="actionscript"><span class="keyword">else</span> &#123;</span></span><br><span class="line"><span class="actionscript">content[kkk][tmp++]=&#123;<span class="string">'url'</span>:bucket.substring(length+<span class="number">1</span>),<span class="string">'date'</span>:date[t].innerHTML.substring(<span class="number">0</span>,<span class="number">10</span>)&#125;;</span></span><br><span class="line">&#125;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="actionscript"><span class="keyword">for</span> (<span class="keyword">var</span> i = <span class="number">0</span>; i &lt; content.length; i++) &#123;</span></span><br><span class="line"><span class="javascript"><span class="keyword">var</span> conBox=<span class="built_in">document</span>.createElement(<span class="string">"div"</span>);</span></span><br><span class="line"><span class="actionscript">conBox.id=<span class="string">'conBox'</span>+i;</span></span><br><span class="line">box.appendChild(conBox);</span><br><span class="line"><span class="javascript"><span class="keyword">var</span> item=<span class="built_in">document</span>.createElement(<span class="string">"div"</span>);</span></span><br><span class="line"><span class="actionscript"><span class="keyword">var</span> title=content[i][<span class="number">0</span>].url;</span></span><br><span class="line"><span class="handlebars"><span class="xml">item.innerHTML="<span class="tag">&lt;<span class="name">button</span> <span class="attr">class</span>=<span class="string">title</span> <span class="attr">style</span>=<span class="string">background:url(</span>"+<span class="attr">xmllink</span>+'/'+<span class="attr">title</span>+"封面<span class="attr">.jpg</span>"+");&gt;</span><span class="tag">&lt;<span class="name">span</span> <span class="attr">style</span>=<span class="string">display:inline;</span>&gt;</span><span class="tag">&lt;<span class="name">strong</span> <span class="attr">style</span>=<span class="string">color:#f0f3f6;</span> &gt;</span>"+title.substring(0,title.length-1)+"<span class="tag">&lt;/<span class="name">strong</span>&gt;</span><span class="tag">&lt;/<span class="name">span</span>&gt;</span><span class="tag">&lt;/<span class="name">button</span>&gt;</span>";</span></span></span><br><span class="line">conBox.appendChild(item);</span><br><span class="line"></span><br><span class="line"><span class="actionscript"><span class="keyword">for</span> (<span class="keyword">var</span> j = <span class="number">1</span>; j &lt; content[i].length &amp;&amp; j &lt; showNum+<span class="number">1</span>; j++) &#123;</span></span><br><span class="line"><span class="actionscript"><span class="keyword">var</span> con=content[i][j].url;</span></span><br><span class="line"><span class="javascript"><span class="keyword">var</span> item=<span class="built_in">document</span>.createElement(<span class="string">"li"</span>);</span></span><br><span class="line"><span class="handlebars"><span class="xml">item.innerHTML="<span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">imgbox</span> <span class="attr">id</span>=<span class="string">imgbox</span> <span class="attr">style</span>=<span class="string">height:</span>"+<span class="attr">wid</span>+"<span class="attr">px</span>;&gt;</span><span class="tag">&lt;<span class="name">img</span> <span class="attr">class</span>=<span class="string">imgitem</span> <span class="attr">src</span>=<span class="string">"+xmllink+'/'+title+con+"</span> <span class="attr">alt</span>=<span class="string">"+con+"</span>&gt;</span><span class="tag">&lt;/<span class="name">div</span>&gt;</span><span class="tag">&lt;<span class="name">span</span>&gt;</span>"+con.substring(0,con.length-4)+"<span class="tag">&lt;/<span class="name">span</span>&gt;</span><span class="tag">&lt;<span class="name">p</span>&gt;</span>上传于"+content[i][j].date+"<span class="tag">&lt;/<span class="name">p</span>&gt;</span>";</span></span></span><br><span class="line">conBox.appendChild(item);</span><br><span class="line">&#125;</span><br><span class="line">if(content[i].length &gt; showNum)&#123;</span><br><span class="line"><span class="javascript"><span class="keyword">var</span> moreItem=<span class="built_in">document</span>.createElement(<span class="string">"button"</span>);</span></span><br><span class="line"><span class="actionscript">moreItem.className=<span class="string">"btn-more-posts"</span>;</span></span><br><span class="line"><span class="actionscript">moreItem.id=<span class="string">"more"</span>+i;</span></span><br><span class="line">moreItem.value=showNum+1;</span><br><span class="line"><span class="javascript"><span class="keyword">let</span> cur=i;</span></span><br><span class="line"><span class="actionscript">moreItem.onclick= <span class="function"><span class="keyword">function</span> <span class="params">()</span></span>&#123;</span></span><br><span class="line"><span class="actionscript">moreClick(<span class="keyword">this</span>,cur,content[cur],content[cur][<span class="number">0</span>].url);</span></span><br><span class="line">&#125;</span><br><span class="line"><span class="handlebars"><span class="xml">moreItem.innerHTML="<span class="tag">&lt;<span class="name">span</span> <span class="attr">style</span>=<span class="string">display:inline;</span>&gt;</span><span class="tag">&lt;<span class="name">strong</span> <span class="attr">style</span>=<span class="string">color:#f0f3f6;</span>&gt;</span>加载更多<span class="tag">&lt;/<span class="name">strong</span>&gt;</span><span class="tag">&lt;/<span class="name">span</span>&gt;</span>";</span></span></span><br><span class="line">conBox.appendChild(moreItem);</span><br><span class="line">&#125;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="actionscript"><span class="function"><span class="keyword">function</span> <span class="title">moreClick</span><span class="params">(obj,cur,cont,title)</span></span>&#123;</span></span><br><span class="line"><span class="actionscript"><span class="keyword">var</span> parent=obj.parentNode;</span></span><br><span class="line">parent.removeChild(obj);</span><br><span class="line"><span class="actionscript"><span class="keyword">var</span> j=obj.value;</span></span><br><span class="line"><span class="actionscript"><span class="keyword">var</span> begin=j;</span></span><br><span class="line"><span class="javascript"><span class="keyword">for</span> ( ; j &lt; cont.length &amp;&amp; j &lt; <span class="built_in">Number</span>(showNum) + <span class="built_in">Number</span>(begin); j++) &#123;</span></span><br><span class="line"><span class="javascript"><span class="built_in">console</span>.log( <span class="built_in">Number</span>(showNum) + <span class="built_in">Number</span>(begin));</span></span><br><span class="line"><span class="actionscript"><span class="keyword">var</span> con=cont[j].url;</span></span><br><span class="line"><span class="javascript"><span class="keyword">var</span> item=<span class="built_in">document</span>.createElement(<span class="string">"li"</span>);</span></span><br><span class="line"><span class="handlebars"><span class="xml">item.innerHTML="<span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">imgbox</span> <span class="attr">id</span>=<span class="string">imgbox</span> <span class="attr">style</span>=<span class="string">height:</span>"+<span class="attr">wid</span>+"<span class="attr">px</span>;&gt;</span><span class="tag">&lt;<span class="name">img</span> <span class="attr">class</span>=<span class="string">imgitem</span> <span class="attr">src</span>=<span class="string">"+xmllink+'/'+title+con+"</span> <span class="attr">alt</span>=<span class="string">"+con+"</span>&gt;</span><span class="tag">&lt;/<span class="name">div</span>&gt;</span><span class="tag">&lt;<span class="name">span</span>&gt;</span>"+con.substring(0,con.length-4)+"<span class="tag">&lt;/<span class="name">span</span>&gt;</span><span class="tag">&lt;<span class="name">p</span>&gt;</span>上传于"+cont[j].date+"<span class="tag">&lt;/<span class="name">p</span>&gt;</span>";</span></span></span><br><span class="line">parent.appendChild(item);</span><br><span class="line">&#125;</span><br><span class="line">if(cont.length &gt; j)&#123;</span><br><span class="line">obj.value=j;</span><br><span class="line">parent.appendChild(obj);</span><br><span class="line">&#125;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="tag">&lt;/<span class="name">script</span>&gt;</span></span><br></pre></td></tr></table></figure></div><p>然后<code>hexo cl &amp;&amp; hexo g &amp;&amp; hexo d</code>生成新的静态文件并上传。</p><p>就完成啦~~~</p><hr><h1 id="特别感谢"><a class="markdownIt-Anchor" href="#特别感谢"></a> 特别感谢</h1><!--小鸡:[给hexo静态博客添加动态相册功能](https://me.idealli.com/post/73ad4183.html)--><p>小鸡: <a href="https://me.idealli.com/post/73ad4183.html" target="_blank" rel="noopener" class="lnkCard">给hexo静态博客添加动态相册功能</a></p>]]></content>
<categories>
<category> 学习 </category>
<category> 折腾 </category>
</categories>
<tags>
<tag> hexo </tag>
<tag> 笔记 </tag>
<tag> yilia </tag>
<tag> 相册 </tag>
</tags>
</entry>
<entry>
<title>用Gulp压缩hexo博客</title>
<link href="/post/25627.html"/>
<url>/post/25627.html</url>
<content type="html"><![CDATA[<p>在寻找怎么压缩hexo让网页载入更快时发现了一片新大陆~~</p><a id="more"></a><p>本文转自<a href="%5Bhttp://keejo.coding.me/%E7%94%A8Gulp%E5%AE%9E%E7%8E%B0Hexo%E7%BD%91%E9%A1%B5%E5%8E%8B%E7%BC%A9%E4%BC%98%E5%8C%96.html%5D(http://keejo.coding.me/%E7%94%A8Gulp%E5%AE%9E%E7%8E%B0Hexo%E7%BD%91%E9%A1%B5%E5%8E%8B%E7%BC%A9%E4%BC%98%E5%8C%96.html)">用Gulp实现Hexo网页压缩优化</a></p><h2 id="gulp是什么"><a class="markdownIt-Anchor" href="#gulp是什么"></a> Gulp是什么</h2><p>Hexo生成的静态网页其实是可读性比较好的,会有大量的空格、换行什么的,而实际浏览器解析式完全不需要的。如果把这些空格、换行全部删掉,就会节省很多空间出来,于是网站的响应速度也就变快了。</p><p>而Gulp是一种基于node的自动化构建工具,至于自动化构建这个我们目前不需要纠结,我们只要知道它有一些插件可以帮助我们自动化的对hexo生成的各种文件进行压缩。</p><h2 id="gulp怎么用"><a class="markdownIt-Anchor" href="#gulp怎么用"></a> Gulp怎么用</h2><li>首先我们要在全局安装下gulp和我们要用到的插件</li><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">bash</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">npm install gulp -g</span><br><span class="line">npm install gulp gulp-uglify gulp-clean-css gulp-imagemin gulp-htmlmin gulp-htmlclean gulp-concat --save</span><br></pre></td></tr></table></figure></div><li>在hexo的根目录创建一个gulpfile.js文件</li>先放代码:<div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">Javascript</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">var</span> gulp = <span class="built_in">require</span>(<span class="string">'gulp'</span>),</span><br><span class="line"> uglify = <span class="built_in">require</span>(<span class="string">'gulp-uglify'</span>),</span><br><span class="line"> cssmin = <span class="built_in">require</span>(<span class="string">'gulp-minify-css'</span>),</span><br><span class="line"> imagemin = <span class="built_in">require</span>(<span class="string">'gulp-imagemin'</span>),</span><br><span class="line"> htmlmin = <span class="built_in">require</span>(<span class="string">'gulp-htmlmin'</span>),</span><br><span class="line"> htmlclean = <span class="built_in">require</span>(<span class="string">'gulp-htmlclean'</span>);</span><br><span class="line"> concat = <span class="built_in">require</span>(<span class="string">'gulp-concat'</span>);</span><br><span class="line"><span class="comment">//JS压缩</span></span><br><span class="line">gulp.task(<span class="string">'uglify'</span>, <span class="function"><span class="keyword">function</span>(<span class="params"></span>) </span>&#123;</span><br><span class="line"> <span class="keyword">return</span> gulp.src([<span class="string">'./public/js/**/.js'</span>,<span class="string">'!./public/js/**/*min.js'</span>])<span class="comment">//只是排除min.js文件还是不严谨,一般不会有问题,根据自己博客的修改我的修改为return gulp.src(['./public/**/*.js','!./public/zuoxi/**/*.js',,'!./public/radio/**/*.js'])</span></span><br><span class="line"> .pipe(uglify())</span><br><span class="line"> .pipe(gulp.dest(<span class="string">'./public/js'</span>));<span class="comment">//对应修改为./public即可</span></span><br><span class="line">&#125;);</span><br><span class="line"><span class="comment">//public-fancybox-js压缩</span></span><br><span class="line">gulp.task(<span class="string">'fancybox:js'</span>, <span class="function"><span class="keyword">function</span>(<span class="params"></span>) </span>&#123;</span><br><span class="line"> <span class="keyword">return</span> gulp.src(<span class="string">'./public/vendors/fancybox/source/jquery.fancybox.js'</span>)</span><br><span class="line"> .pipe(uglify())</span><br><span class="line"> .pipe(gulp.dest(<span class="string">'./public/vendors/fancybox/source/'</span>));</span><br><span class="line">&#125;);</span><br><span class="line"><span class="comment">// 合并 JS</span></span><br><span class="line">gulp.task(<span class="string">'jsall'</span>, <span class="function"><span class="keyword">function</span> (<span class="params"></span>) </span>&#123;</span><br><span class="line"> <span class="keyword">return</span> gulp.src(<span class="string">'./public/**/*.js'</span>)</span><br><span class="line"> <span class="comment">// 压缩后重命名</span></span><br><span class="line"> .pipe(concat(<span class="string">'app.js'</span>))</span><br><span class="line"> .pipe(gulp.dest(<span class="string">'./public'</span>));</span><br><span class="line">&#125;);</span><br><span class="line"><span class="comment">//public-fancybox-css压缩</span></span><br><span class="line">gulp.task(<span class="string">'fancybox:css'</span>, <span class="function"><span class="keyword">function</span>(<span class="params"></span>) </span>&#123;</span><br><span class="line"> <span class="keyword">return</span> gulp.src(<span class="string">'./public/vendors/fancybox/source/jquery.fancybox.css'</span>)</span><br><span class="line"> .pipe(cssmin())</span><br><span class="line"> .pipe(gulp.dest(<span class="string">'./public/vendors/fancybox/source/'</span>));</span><br><span class="line">&#125;);</span><br><span class="line"><span class="comment">//CSS压缩</span></span><br><span class="line">gulp.task(<span class="string">'cssmin'</span>, <span class="function"><span class="keyword">function</span>(<span class="params"></span>) </span>&#123;</span><br><span class="line"> <span class="keyword">return</span> gulp.src([<span class="string">'./public/css/main.css'</span>,<span class="string">'!./public/css/*min.css'</span>]) </span><br><span class="line"> .pipe(cssmin())</span><br><span class="line"> .pipe(gulp.dest(<span class="string">'./public/css/'</span>));</span><br><span class="line">&#125;);</span><br><span class="line"><span class="comment">//图片压缩</span></span><br><span class="line">gulp.task(<span class="string">'images'</span>, <span class="function"><span class="keyword">function</span>(<span class="params"></span>) </span>&#123;</span><br><span class="line"> gulp.src(<span class="string">'./public/uploads/*.*'</span>)</span><br><span class="line"> .pipe(imagemin(&#123;</span><br><span class="line"> progressive: <span class="literal">false</span></span><br><span class="line"> &#125;))</span><br><span class="line"> .pipe(gulp.dest(<span class="string">'./public/uploads/'</span>));</span><br><span class="line">&#125;);</span><br><span class="line"><span class="comment">// 压缩 public 目录 html文件 public/**/*.hmtl 表示public下所有文件夹中html,包括当前目录</span></span><br><span class="line">gulp.task(<span class="string">'minify-html'</span>, <span class="function"><span class="keyword">function</span>(<span class="params"></span>) </span>&#123;</span><br><span class="line"> <span class="keyword">return</span> gulp.src(<span class="string">'./public/**/*.html'</span>)</span><br><span class="line"> .pipe(htmlclean())</span><br><span class="line"> .pipe(htmlmin(&#123;</span><br><span class="line"> removeComments: <span class="literal">true</span>,</span><br><span class="line"> minifyJS: <span class="literal">true</span>,</span><br><span class="line"> minifyCSS: <span class="literal">true</span>,</span><br><span class="line"> minifyURLs: <span class="literal">true</span>,</span><br><span class="line"> &#125;))</span><br><span class="line"> .pipe(gulp.dest(<span class="string">'./public'</span>))</span><br><span class="line">&#125;);</span><br><span class="line"><span class="comment">// gulp.task('default', gulp.series('uglify', 'cssmin', 'fancybox:js', 'fancybox:css', 'jsall','images'));</span></span><br><span class="line">gulp.task(<span class="string">'default'</span>, gulp.series(<span class="string">'uglify'</span>, <span class="string">'jsall'</span>, <span class="string">'minify-html'</span>));</span><br><span class="line"></span><br><span class="line"><span class="comment">//, 'minify-html', 'cssmin'</span></span><br></pre></td></tr></table></figure></div><p>这里要注意的是,默认安装的是gulp 4.0.0,而网上很多例子是基于gulp 3的,所以运行起来 会有如下的报错:</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">bash</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line">assert.js:351</span><br><span class="line"> throw err;</span><br><span class="line"> ^</span><br><span class="line"></span><br><span class="line">AssertionError [ERR_ASSERTION]: Task <span class="keyword">function</span> must be specified</span><br><span class="line"> at Gulp.set [as _setTask] (/Users/zhengk/Desktop/hexo/blog/node_modules/_undertaker@1.2.0@undertaker/lib/<span class="built_in">set</span>-task.js:10:3)</span><br><span class="line"> at Gulp.task (/Users/zhengk/Desktop/hexo/blog/node_modules/_undertaker@1.2.0@undertaker/lib/task.js:13:8)</span><br><span class="line"> at Object.&lt;anonymous&gt; (/Users/zhengk/Desktop/hexo/blog/gulpfile.js:59:6)</span><br><span class="line"> at Module._compile (internal/modules/cjs/loader.js:721:30)</span><br><span class="line"> at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)</span><br><span class="line"> at Module.load (internal/modules/cjs/loader.js:620:32)</span><br><span class="line"> at tryModuleLoad (internal/modules/cjs/loader.js:560:12)</span><br><span class="line"> at Function.Module._load (internal/modules/cjs/loader.js:552:3)</span><br><span class="line"> at Module.require (internal/modules/cjs/loader.js:657:17)</span><br><span class="line"> at require (internal/modules/cjs/helpers.js:22:18)</span><br></pre></td></tr></table></figure></div><p>这是由于gulp4中需要使用gulp.series 和 gulp.parallel来指定运行的任务。具体见上面gulpfile.js中的最后一行。<br><code>gulp.task('default', gulp.series('uglify', 'jsall', 'minify-html'));</code></p><p>这一行是写明gulp需要执行的任务,然后需要注意的是,当其中某个任务失败或者没有东西需要压缩的时候,比如你没有用到cssmin却要执行cssmin:js任务,就会有如下的报错:</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">bash</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line">[23:20:00] Using gulpfile F:\blog\blogsource\gulpfile.js</span><br><span class="line">[23:20:00] Starting <span class="string">'default'</span>...</span><br><span class="line">[23:20:00] Starting <span class="string">'uglify'</span>...</span><br><span class="line">[23:20:01] Finished <span class="string">'uglify'</span> after 60 ms</span><br><span class="line">[23:20:01] Starting <span class="string">'cssmin'</span>...</span><br><span class="line">[23:20:01] <span class="string">'cssmin'</span> errored after 15 ms</span><br><span class="line">[23:20:01] Error: File not found with singular glob: F:/blog/blogsource/public/css/main.css (<span class="keyword">if</span> this was purposeful, use `allowEmpty` option)</span><br><span class="line"> at Glob.&lt;anonymous&gt; (F:\blog\blogsource\node_modules\glob-stream\readable.js:84:17)</span><br><span class="line"> at Object.onceWrapper (events.js:286:20)</span><br><span class="line"> at Glob.emit (events.js:198:13)</span><br><span class="line"> at Glob.EventEmitter.emit (domain.js:448:20)</span><br><span class="line"> at Glob._finish (F:\blog\blogsource\node_modules\glob-stream\node_modules\glob\glob.js:197:8)</span><br><span class="line"> at <span class="keyword">done</span> (F:\blog\blogsource\node_modules\glob-stream\node_modules\glob\glob.js:182:14)</span><br><span class="line"> at Glob._processSimple2 (F:\blog\blogsource\node_modules\glob-stream\node_modules\glob\glob.js:688:12)</span><br><span class="line"> at F:\blog\blogsource\node_modules\glob-stream\node_modules\glob\glob.js:676:10</span><br><span class="line"> at Glob._stat2 (F:\blog\blogsource\node_modules\glob-stream\node_modules\glob\glob.js:772:12)</span><br><span class="line"> at lstatcb_ (F:\blog\blogsource\node_modules\glob-stream\node_modules\glob\glob.js:764:12)</span><br></pre></td></tr></table></figure></div><p>只要把对应的任务删掉就好了。</p><li>运行gulp</li><p>先执行hexo g来生成静态网页,然后我们看下public文件夹下的静态文件大小:</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">bash</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="variable">$ls</span> -lh</span><br><span class="line">-rw-r--r-- 1 zhengk staff 57K 12 30 00:07 index.html</span><br></pre></td></tr></table></figure></div><p>然后我们再执行下gulp(执行时默认执行default任务,所以前面gulpfile.js中设置任务为default)对比下效果:</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">bash</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line"><span class="variable">$gulp</span></span><br><span class="line">[00:53:29] Working directory changed to ~/Desktop/hexo/blog</span><br><span class="line">[00:53:30] Using gulpfile ~/Desktop/hexo/blog/gulpfile.js</span><br><span class="line">[00:53:30] Starting <span class="string">'default'</span>...</span><br><span class="line">[00:53:30] Starting <span class="string">'uglify'</span>...</span><br><span class="line">[00:53:30] Finished <span class="string">'uglify'</span> after 23 ms</span><br><span class="line">[00:53:30] Starting <span class="string">'cssmin'</span>...</span><br><span class="line">[00:53:30] Finished <span class="string">'cssmin'</span> after 216 ms</span><br><span class="line">[00:53:30] Starting <span class="string">'jsall'</span>...</span><br><span class="line">[00:53:30] Finished <span class="string">'jsall'</span> after 56 ms</span><br><span class="line">[00:53:30] Starting <span class="string">'minify-html'</span>...</span><br><span class="line">[00:53:31] Finished <span class="string">'minify-html'</span> after 1.16 s</span><br><span class="line">[00:53:31] Finished <span class="string">'default'</span> after 1.46 s</span><br><span class="line"><span class="variable">$ls</span> -lh</span><br><span class="line">-rw-r--r-- 1 zhengk staff 27K 12 30 00:07 hello-world.html</span><br></pre></td></tr></table></figure></div><p>可以发现足足小了30k,压缩了近一半大小。</p>]]></content>
<categories>
<category> 学习 </category>
<category> 折腾 </category>
</categories>
<tags>
<tag> hexo </tag>
<tag> blog </tag>
<tag> gulp </tag>
</tags>
</entry>
<entry>
<title>hexo yilia主题添加主页及网页404</title>
<link href="/post/30152.html"/>
<url>/post/30152.html</url>
<content type="html"><![CDATA[<p>hexo yilia主题实现自定义主页以及404页面<a id="more"></a></p><h2 id="自定义主页的过程"><a class="markdownIt-Anchor" href="#自定义主页的过程"></a> 自定义主页的过程</h2><h3 id="最终效果"><a class="markdownIt-Anchor" href="#最终效果"></a> 最终效果</h3><h4 id="主页"><a class="markdownIt-Anchor" href="#主页"></a> 主页:</h4><p><img alt="home.png" data-src="https://static.dy208.cn/o_1di2o5ccrkf8m6gk701rrq1c7ka.png" class="lazyload"></p><h4 id="404"><a class="markdownIt-Anchor" href="#404"></a> 404:</h4><p><img alt="404.png" data-src="https://static.dy208.cn/o_1di2o9ekkkib1vjkpnli0iaaca.png" class="lazyload"></p><h3 id="实现方法"><a class="markdownIt-Anchor" href="#实现方法"></a> 实现方法</h3><h4 id="1下载主页及404模板"><a class="markdownIt-Anchor" href="#1下载主页及404模板"></a> 1.下载主页及404模板</h4><p>在<a href="http://404.life" target="_blank" rel="noopener">404模板网</a>下载喜欢的页面模板(别的模板也可以,我的是在404模板网下载的),大佬可以不用下载自己写就完了。</p><h4 id="2修改博客生成目录"><a class="markdownIt-Anchor" href="#2修改博客生成目录"></a> 2.修改博客生成目录</h4><p>打开主题配置文件_comfig.yml并将</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">bash</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">url: http://52chang.wang</span><br><span class="line">root: /</span><br><span class="line">public_dir: public //(hexo g)生成到的目录</span><br></pre></td></tr></table></figure></div><p>修改为</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">bash</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">url: http://52chang.wang/blog</span><br><span class="line">root: /blog</span><br><span class="line">public_dir: public/blog</span><br></pre></td></tr></table></figure></div><h4 id="3修改部署目录"><a class="markdownIt-Anchor" href="#3修改部署目录"></a> 3.修改部署目录</h4><p>打开node_modules/hexo-deployer-git/lib/deployer.js文件并将</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">bash</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">var publicDir = this.public_dir;</span><br></pre></td></tr></table></figure></div><p>修改为</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">bash</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">var publicDir = pathFn.join(baseDir, <span class="string">'public'</span>);</span><br></pre></td></tr></table></figure></div><p>因为部署时用的是主题_config.yml里的public_dir,所以我们将其改为public。</p><h4 id="4添加主页及404"><a class="markdownIt-Anchor" href="#4添加主页及404"></a> 4.添加主页及404</h4><p>在你的本地博客文件根目录blogsource下(我的是blogsource)新建public文件夹,并将你的主页以及404页面放在public/下<br><img alt="o_1di2qh7je18pvq83psg1fuhghia.jpg" data-src="https://static.dy208.cn/o_1di2qh7je18pvq83psg1fuhghia.jpg" class="lazyload"><br><img alt="o_1di2qldtvnhp1dt11rdl16251roda.jpg" data-src="https://static.dy208.cn/o_1di2qldtvnhp1dt11rdl16251roda.jpg" class="lazyload"></p><h4 id="5一键三连"><a class="markdownIt-Anchor" href="#5一键三连"></a> 5.一键三连</h4><p>将博客部署到GitHub/Coding上</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">bash</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">hexo clean</span><br><span class="line">hexo g</span><br><span class="line">hexo d</span><br></pre></td></tr></table></figure></div><p>现在你就可以看看效果啦~~~</p><h3 id="写在最后"><a class="markdownIt-Anchor" href="#写在最后"></a> 写在最后</h3><p>本文参考<a href="https://www.jsdoi.com/blog/2016/02/24/blog-hexo-github/" target="_blank" rel="noopener">建立一个自定义主页的HEXO博客</a></p>]]></content>
<categories>
<category> 学习 </category>
<category> 折腾 </category>
</categories>
<tags>
<tag> hexo </tag>
<tag> blog </tag>
<tag> 主页/404 </tag>
</tags>
</entry>
<entry>
<title>hexo deploy部署到GitHub上莫名卡住的问题</title>
<link href="/post/45280.html"/>
<url>/post/45280.html</url>
<content type="html"><![CDATA[<p>昨天晚上进行hexo deploy 部署到GitHub上时莫名卡在Total 116 (delta 23), reused 0 (delta 0)。<a id="more"></a></p><h3 id="问题描述"><a class="markdownIt-Anchor" href="#问题描述"></a> 问题描述</h3><p>昨天晚上进行hexo deploy 部署到GitHub上时莫名卡在这里。部署前本地预览hexo s显示正常</p><p><img alt="o_1dhr32u9m1q0g111gio2188j1rrea.jpg" data-src="https://static.dy208.cn/o_1dhr32u9m1q0g111gio2188j1rrea.jpg" class="lazyload"></p><p>Google解决方法,有说网络问题,也有说是GitHub部署链接出问题,但是检查过后都没有问题,最终在<a href="http://duanyifu.com/2016/08/23/hexo-deploy-problem/" target="_blank" rel="noopener">hexo deploy 命令卡住的奇怪问题</a>中找到了解决方法。</p><h3 id="解决方法"><a class="markdownIt-Anchor" href="#解决方法"></a> 解决方法</h3><p>首先检查下博客根目录下的_config.yml中的deploy配置有没有出错</p><p><img alt="o_1dhr4680h1epme521gom105u1ue2a.jpg" data-src="https://static.dy208.cn/o_1dhr4680h1epme521gom105u1ue2a.jpg" class="lazyload"></p><p>检查过后也没有问题,于是让GitHub用https的部署链接(即上图中打#号的链接),并让git走代理。完美解决…</p><p>git走代理配置:</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">bash</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">git config --global http.proxy <span class="string">'socks5://127.0.0.1:1080'</span></span><br><span class="line">git config --global https.proxy <span class="string">'socks5://127.0.0.1:1080'</span></span><br></pre></td></tr></table></figure></div><p>前面都配置完后部署三连</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">bash</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">hexo clean</span><br><span class="line">hexo g</span><br><span class="line">hexo d</span><br></pre></td></tr></table></figure></div><p>部署后就等待部署成功吧~~~</p><p>PS:使用http部署到GitHub上是会让你输入GitHub的账号跟密码,不要输错!!!</p>]]></content>
<categories>
<category> 学习 </category>
<category> 折腾 </category>
</categories>
<tags>
<tag> hexo </tag>
<tag> blog </tag>
<tag> deploy </tag>
</tags>
</entry>
<entry>
<title>First-Blog*Markdown小入门</title>
<link href="/post/55463.html"/>
<url>/post/55463.html</url>
<content type="html"><![CDATA[<!--![](//cdn.jsdelivr.net/gh/qj9901/qj9901.github.io/images/linkcard.png)--><div id="jump"></div> 第一次建博客、写博客本着满足自己那颗爱瞎折腾的心,就来瞎搞了!!!---<a id="more"></a><h1 id="记一下markdown的小笔记"><a class="markdownIt-Anchor" href="#记一下markdown的小笔记"></a> 记一下markdown的小笔记</h1><h2 id="markdown常见的语法"><a class="markdownIt-Anchor" href="#markdown常见的语法"></a> markdown常见的语法</h2><h3 id="1标题"><a class="markdownIt-Anchor" href="#1标题"></a> 1.标题</h3><p>建立一个 1 级标题</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">bash</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># 你的一级标题</span></span><br></pre></td></tr></table></figure></div><p>建立一个 2 级标题</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">bash</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">## 建立一个2级标题</span></span><br></pre></td></tr></table></figure></div><p>依此类推最多可以建立5个</p><h3 id="2字体文字格式回车等"><a class="markdownIt-Anchor" href="#2字体文字格式回车等"></a> 2.字体/文字格式/回车/等</h3><p><font color="green" face="楷体" size="5">字体、颜色</font><br><b> 加粗 </b><br><i>斜体</i><br><u>下划线</u><br><br><s>删除线</s><br><br><d>删除线+1</d><br>上标:X<sup>2</sup><br>下标:X<sub>2</sub></p><center>居中</center> <mark>标记</mark><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">bash</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line">&lt;font color=<span class="string">"green"</span> face=<span class="string">"楷体"</span> size= 5&gt;字体、颜色&lt;/font&gt; </span><br><span class="line">&lt;b&gt; 加粗 &lt;/b&gt; </span><br><span class="line">&lt;I&gt;斜体&lt;/I&gt; </span><br><span class="line">&lt;U&gt;下划线&lt;/U&gt; </span><br><span class="line">&lt;S&gt;删除线&lt;/S&gt; </span><br><span class="line">&lt;d&gt;删除线+1&lt;/d&gt; </span><br><span class="line">上标:X&lt;sup&gt;2&lt;/sup&gt; </span><br><span class="line">下标:X&lt;sub&gt;2&lt;/sub&gt; </span><br><span class="line">&lt;center&gt;居中&lt;/center&gt; </span><br><span class="line">&lt;mark&gt;标记&lt;/mark&gt; </span><br><span class="line">&lt;/br&gt;回车或 两个空格回车</span><br></pre></td></tr></table></figure></div><h3 id="3标签"><a class="markdownIt-Anchor" href="#3标签"></a> 3.标签</h3><p>单个标签:在.md文章开头写</p><blockquote><p>tags: XXX(XXX为你的标签)</p></blockquote><p>多个标签:在.md文章开头写</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">Code</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">tags: </span><br><span class="line">-XXX </span><br><span class="line">-XXX</span><br></pre></td></tr></table></figure></div><h3 id="4代码"><a class="markdownIt-Anchor" href="#4代码"></a> 4.代码</h3><p>在.md文章中代码前后添加</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">bash</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">```你的代码语言 </span><br><span class="line">你的代码 lalalalala</span><br></pre></td></tr></table></figure></div><blockquote><p>PS:写md文件的时候,如果有中文一定要用utf-8格式保存,否则会乱码。</p></blockquote><h3 id="5超链接"><a class="markdownIt-Anchor" href="#5超链接"></a> 5.超链接</h3><p>例如 <a href="https://52chang.wang" target="_blank" rel="noopener">HELLO</a><br>在.md文件中在你要添加超链接滴地方写</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">html</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">[你要写的文字](你的超链接) </span><br><span class="line">或 </span><br><span class="line"><span class="tag">&lt;<span class="name">a</span> <span class="attr">href</span>=<span class="string">"你的超链接"</span> <span class="attr">target</span>=<span class="string">"_blank"</span> &gt;</span>你要写的东西<span class="tag">&lt;/<span class="name">a</span>&gt;</span></span><br></pre></td></tr></table></figure></div><h3 id="6图片添加"><a class="markdownIt-Anchor" href="#6图片添加"></a> 6.图片添加</h3><p><img alt="photo" data-src="https://static.dy208.cn/o_1dg80tmkf1fhc5jq17iqnrt149qa.jpg" class="lazyload"><br>因为markdown不支持直接放图片,所以只能通过<br>在.md文件中添加</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">html</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">![图片全称](你的图片链接/图片地址) </span><br><span class="line">或用html img标签 </span><br><span class="line"><span class="tag">&lt;<span class="name">img</span> <span class="attr">src</span>=<span class="string">"你的图片链接/图片地址"</span> <span class="attr">width</span>=<span class="string">100%</span> <span class="attr">div</span> <span class="attr">align</span>=<span class="string">center</span> /&gt;</span></span><br></pre></td></tr></table></figure></div><h3 id="7音乐视频"><a class="markdownIt-Anchor" href="#7音乐视频"></a> 7.音乐/视频</h3><p>例如</p><p><audio src="https://player.limh.me/api/musicUrl?songId=36270426&type=wy" style="max-height :100%; max-width: 100%; display: block; margin-left: auto; margin-right: auto;" controls="controls" loop="loop" preload="meta">Your browser does not support the audio tag.</audio><br>直接在你需要添加音乐/视频的地方添加对应的外链即可。格式如下。</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">html</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">audio</span> <span class="attr">src</span>=<span class="string">"你的音乐外链"</span> <span class="attr">style</span>=<span class="string">"max-height :100%; max-width: 100%; display: block; margin-left: auto; margin-right: auto;"</span> <span class="attr">controls</span>=<span class="string">"controls"</span> <span class="attr">loop</span>=<span class="string">"loop"</span> <span class="attr">preload</span>=<span class="string">"meta"</span>&gt;</span>Your browser does not support the audio tag.<span class="tag">&lt;/<span class="name">audio</span>&gt;</span></span><br></pre></td></tr></table></figure></div><p>或是这样</p><iframe frameborder="yes" border="0" marginwidth="0" marginheight="0" width="100%" height="86" src="//music.163.com/outchain/player?type=2&id=427017134&auto=0&height=66"></iframe> <div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">Code</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">&lt;iframe frameborder&#x3D;&quot;no&quot; border&#x3D;&quot;0&quot; marginwidth&#x3D;&quot;0&quot; marginheight&#x3D;&quot;0&quot; width&#x3D;100% height&#x3D;86 src&#x3D;&quot;&#x2F;&#x2F;music.163.com&#x2F;outchain&#x2F;player?type&#x3D;2&amp;id&#x3D;427017134&amp;auto&#x3D;1&amp;height&#x3D;66&quot;&gt;&lt;&#x2F;iframe&gt;</span><br></pre></td></tr></table></figure></div><h3 id="8折叠内容"><a class="markdownIt-Anchor" href="#8折叠内容"></a> 8.折叠内容</h3><details> <summary><font color="gray">看看效果</font></summary> 你是不是好奇点了一下呢`Q_Q` </details> <div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">bash</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">&lt;details&gt; </span><br><span class="line">&lt;summary&gt;&lt;font color=gray&gt;折叠现实的词&lt;/font&gt;&lt;/summary&gt; </span><br><span class="line">折叠隐藏的内容 </span><br><span class="line">&lt;/details&gt;</span><br></pre></td></tr></table></figure></div><h3 id="9文章显示部分"><a class="markdownIt-Anchor" href="#9文章显示部分"></a> 9.文章显示部分</h3><p>为了不再博客主页显示文章的全部内容<br>在文章中见你想要截断的地方插入</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">bash</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">&lt;!--more--&gt;</span><br></pre></td></tr></table></figure></div><p>如此主页就只会显示插入标识前的内容</p><h3 id="10文章页面内跳转"><a class="markdownIt-Anchor" href="#10文章页面内跳转"></a> 10.文章页面内跳转</h3><p>页面内跳转分跳转标识与跳转指令。<br>跳转标识(jump):调价到你想要跳转到的地方。<br>例如:<a href="#jump">跳转到页首</a></p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">bash</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">&lt;div id=<span class="string">"jump"</span>&gt;&lt;/div&gt;</span><br></pre></td></tr></table></figure></div><p>跳转指令:点击就会跳到标识所在处。</p><div class="code-area-wrap"><div class="highlight-tools"><i class="fa fa-angle-down code-expand" aria-hidden="true"></i><div class="code_lang">bash</div><div class="copy-notice"></div><i class="fa fa-clipboard" aria-hidden="true"></i></div><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">[跳转到页首](<span class="comment">#jump)</span></span><br></pre></td></tr></table></figure></div>]]></content>
<categories>
<category> 学习 </category>
<category> 折腾 </category>
<category> blog </category>
</categories>
<tags>
<tag> blog </tag>
<tag> 笔记 </tag>
<tag> markdown </tag>
</tags>
</entry>
</search>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化