代码拉取完成,页面将自动刷新
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hexo</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta property="og:type" content="website">
<meta property="og:title" content="Hexo">
<meta property="og:url" content="http://yoursite.com/index.html">
<meta property="og:site_name" content="Hexo">
<meta property="og:locale" content="en_US">
<meta property="article:author" content="John Doe">
<meta name="twitter:card" content="summary">
<link rel="alternate" href="/atom.xml" title="Hexo" type="application/atom+xml">
<link rel="icon" href="/favicon.png">
<link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="/css/style.css">
<meta name="generator" content="Hexo 4.2.1"></head>
<body>
<div id="container">
<div id="wrap">
<header id="header">
<div id="banner"></div>
<div id="header-outer" class="outer">
<div id="header-title" class="inner">
<h1 id="logo-wrap">
<a href="/" id="logo">Hexo</a>
</h1>
</div>
<div id="header-inner" class="inner">
<nav id="main-nav">
<a id="main-nav-toggle" class="nav-icon"></a>
<a class="main-nav-link" href="/">Home</a>
<a class="main-nav-link" href="/archives">Archives</a>
</nav>
<nav id="sub-nav">
<a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
<a id="nav-search-btn" class="nav-icon" title="Search"></a>
</nav>
<div id="search-form-wrap">
<form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit"></button><input type="hidden" name="sitesearch" value="http://yoursite.com"></form>
</div>
</div>
</div>
</header>
<div class="outer">
<section id="main">
<article id="post-js里forEach遍历中使用continue报错" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2020/09/07/js%E9%87%8CforEach%E9%81%8D%E5%8E%86%E4%B8%AD%E4%BD%BF%E7%94%A8continue%E6%8A%A5%E9%94%99/" class="article-date">
<time datetime="2020-09-07T13:10:43.000Z" itemprop="datePublished">2020-09-07</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2020/09/07/js%E9%87%8CforEach%E9%81%8D%E5%8E%86%E4%B8%AD%E4%BD%BF%E7%94%A8continue%E6%8A%A5%E9%94%99/">js里forEach遍历中使用continue报错</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>前段时间忙着加班,做开源项目的时候遇到一个小问题,这里补上博客。 </p>
<p>情况是这样的,我在对数据进行处理的时候,有个功能需要循环某个数组,并从中筛选出复合条件的元素组合成新数组。 </p>
<p>由于是对数组进行循环,自然而然就用了数组的forEach()方法,而在对数组内元素进行筛选时,遇到不符合条件的元素时,打算直接不执行后面的语句,跳到下一个循环中,那么就自然而然的用了continue语句。 </p>
<p>不幸的是,运行时报错了。</p>
<p><img src="../img/js%E9%87%8CforEach%E9%81%8D%E5%8E%86%E4%B8%AD%E4%BD%BF%E7%94%A8continue%E6%8A%A5%E9%94%99/1.png" alt="图片"></p>
<p>检查后发现是在forEach中不能使用continue语句,嘛,小问题,改用传统for循环即可。 </p>
<p>或者使用代替的方法,在forEach中,可用return true来代替continue,用return false来代替break。 </p>
</div>
<footer class="article-footer">
<a data-url="http://yoursite.com/2020/09/07/js%E9%87%8CforEach%E9%81%8D%E5%8E%86%E4%B8%AD%E4%BD%BF%E7%94%A8continue%E6%8A%A5%E9%94%99/" data-id="ckeskugok00008kvp2bdafcc6" class="article-share-link">Share</a>
</footer>
</div>
</article>
<article id="post-table中溢出文本显示'...'" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2020/09/04/table%E4%B8%AD%E6%BA%A2%E5%87%BA%E6%96%87%E6%9C%AC%E6%98%BE%E7%A4%BA'...'/" class="article-date">
<time datetime="2020-09-04T08:58:58.000Z" itemprop="datePublished">2020-09-04</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2020/09/04/table%E4%B8%AD%E6%BA%A2%E5%87%BA%E6%96%87%E6%9C%AC%E6%98%BE%E7%A4%BA'...'/">table中溢出文本显示'...'</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>今天工作中遇到了一个需求,大致上是超出边框的文本隐藏,并在后面显示“…” </p>
<p>需求倒是没什么问题,也算比较常见了,理论上直接添加css样式就能解决。</p>
<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">.card-describe {</span><br><span class="line"> overflow: hidden; // 超出隐藏</span><br><span class="line"> white-space: nowrap; // 文字不换行</span><br><span class="line"> text-overflow: ellipsis; // 文字溢出显示...</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
<p>没想到的是,保存完以后竟然没有生效,嘛,仔细排查一下好了。 </p>
<p><img src="../img/table%E4%B8%AD%E6%BA%A2%E5%87%BA%E6%96%87%E6%9C%AC%E6%98%BE%E7%A4%BA'...'/1.png" alt="图片"></p>
<p>开始以为是css出现了冲突,我写的样式被覆盖或者没有生效,为了验证一下,就把这几个css语句直接写进元素的行内style,结果发现并不是这个问题,我写的这三行样式确确实实生效了。 </p>
<p><img src="../img/table%E4%B8%AD%E6%BA%A2%E5%87%BA%E6%96%87%E6%9C%AC%E6%98%BE%E7%A4%BA'...'/2.png" alt="图片"></p>
<p>这就奇怪了,这种情况下解决问题的最好方法自然是百度(百度打钱谢谢) </p>
<p>我一查,好家伙,确实有人也遇到过这个问题,他们是发现在table样式中,text-overflow: ellipsis;失效。我这里用的ui框架是element ui,仔细排查一看,果然那个元素的默认style中有display: table;,剩下的就好办了,额外添加一句table-layout: fixed;即可修复这个问题。</p>
<p><img src="../img/table%E4%B8%AD%E6%BA%A2%E5%87%BA%E6%96%87%E6%9C%AC%E6%98%BE%E7%A4%BA'...'/3.png" alt="图片"></p>
<p><img src="../img/table%E4%B8%AD%E6%BA%A2%E5%87%BA%E6%96%87%E6%9C%AC%E6%98%BE%E7%A4%BA'...'/4.png" alt="图片"></p>
<p>解决bug之后,自然想要去了解了一下出现bug的根本原因。 </p>
<p>发现table-layout可以取这样几个值</p>
<p><img src="../img/table%E4%B8%AD%E6%BA%A2%E5%87%BA%E6%96%87%E6%9C%AC%E6%98%BE%E7%A4%BA'...'/5.png" alt="图片"></p>
<p>可以看出这个属性是改变了表格列宽度的设定方式,故据此推测,text-overflow属性在table模式下,是设定超出规定列宽(也因此需要设定width属性)以外的文字的展示方式,而元素在该模式下,默认列宽读取单元格内容的宽度,因此虽然设定了width为200px,但只是给表格宽度做了限制,并没有影响到列宽,text-overflow属性也就此失效。 </p>
<p>而在设定了table-layout: fixed;后,列宽改为读取表格宽度,即读取到了我设定好的width: 200px;属性,此时text-overflow属性才能确定有文本超出了列宽,进而对超出的内容进行处理。</p>
</div>
<footer class="article-footer">
<a data-url="http://yoursite.com/2020/09/04/table%E4%B8%AD%E6%BA%A2%E5%87%BA%E6%96%87%E6%9C%AC%E6%98%BE%E7%A4%BA'...'/" data-id="ckeskugoq00018kvph2yi7ep9" class="article-share-link">Share</a>
</footer>
</div>
</article>
<article id="post-vue-router默认显示子路由" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2020/08/03/vue-router%E9%BB%98%E8%AE%A4%E6%98%BE%E7%A4%BA%E5%AD%90%E8%B7%AF%E7%94%B1/" class="article-date">
<time datetime="2020-08-03T01:42:38.000Z" itemprop="datePublished">2020-08-03</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2020/08/03/vue-router%E9%BB%98%E8%AE%A4%E6%98%BE%E7%A4%BA%E5%AD%90%E8%B7%AF%E7%94%B1/">vue-router默认显示子路由</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>有种简单的解决方案,使用自带的重定向功能</p>
<h2 id="重定向"><a href="#重定向" class="headerlink" title="重定向"></a>重定向</h2><p>修改router的js文件,在需要设置默认子路由的配置中加入redirect属性,并指定重定向的路径为默认子路由的路径即可</p>
<p>该方法直接改变url</p>
<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><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><span class="line">{</span><br><span class="line"> path: '/pc',</span><br><span class="line"> name: 'PersonalCenter',</span><br><span class="line"> component: () => import('../views/PersonalCenter.vue'),</span><br><span class="line"> redirect: '/pc/pccomp',</span><br><span class="line"> children: [</span><br><span class="line"> {</span><br><span class="line"> path: 'pccomp',</span><br><span class="line"> name: 'personalCenterComp',</span><br><span class="line"> component: () => import('../views/components/personalCenterComp.vue')</span><br><span class="line"> },</span><br><span class="line"> {</span><br><span class="line"> path: 'mscomp',</span><br><span class="line"> name: 'mySearchComp',</span><br><span class="line"> component: () => import('../views/components/mySearchComp.vue')</span><br><span class="line"> },</span><br><span class="line"> ]</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
<hr>
<h2 id="其他方案"><a href="#其他方案" class="headerlink" title="其他方案"></a>其他方案</h2><p>曾尝试使用别名功能,过程中发现给父路由设置别名后,原本指向的路径要指定为所需默认子路由的路径,但这样一来,父路由路径改变,子路由路径也会跟着改变,故在嵌套路由中不能使用别名功能来解决该问题。</p>
</div>
<footer class="article-footer">
<a data-url="http://yoursite.com/2020/08/03/vue-router%E9%BB%98%E8%AE%A4%E6%98%BE%E7%A4%BA%E5%AD%90%E8%B7%AF%E7%94%B1/" data-id="ckde35gni0000zovped9bfh4v" class="article-share-link">Share</a>
</footer>
</div>
</article>
<article id="post-Markdown常用语法简介" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2020/07/20/Markdown%E5%B8%B8%E7%94%A8%E8%AF%AD%E6%B3%95%E7%AE%80%E4%BB%8B/" class="article-date">
<time datetime="2020-07-20T05:54:29.000Z" itemprop="datePublished">2020-07-20</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2020/07/20/Markdown%E5%B8%B8%E7%94%A8%E8%AF%AD%E6%B3%95%E7%AE%80%E4%BB%8B/">Markdown常用语法简介</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<h2 id="一、标题"><a href="#一、标题" class="headerlink" title="一、标题"></a>一、标题</h2><figure class="highlight markdown"><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></pre></td><td class="code"><pre><span class="line"><span class="section"># 这是一级标题</span></span><br><span class="line"><span class="section">## 这是二级标题</span></span><br><span class="line"><span class="section">### 这是三级标题</span></span><br><span class="line"><span class="section">#### 这是四级标题</span></span><br><span class="line"><span class="section">##### 这是五级标题</span></span><br><span class="line"><span class="section">###### 这是六级标题</span></span><br></pre></td></tr></table></figure>
<p>行开头写#加空格</p>
<hr>
<h2 id="二、字体"><a href="#二、字体" class="headerlink" title="二、字体"></a>二、字体</h2><figure class="highlight markdown"><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"><span class="strong">**这是加粗的文字**</span></span><br><span class="line"><span class="emphasis">*这是倾斜的文字*</span>`</span><br><span class="line"><span class="strong">***这是斜体加粗的文字**</span>*</span><br><span class="line">~~这是加删除线的文字~~</span><br></pre></td></tr></table></figure>
<p><strong>这是加粗的文字</strong></p>
<p><em>这是倾斜的文字</em></p>
<p><strong><em>这是斜体加粗的文字</em></strong></p>
<p><del>这是加删除线的文字</del></p>
<hr>
<h2 id="三、引用"><a href="#三、引用" class="headerlink" title="三、引用"></a>三、引用</h2><figure class="highlight markdown"><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><br></pre></td></tr></table></figure>
<blockquote>
<p>这是引用的内容</p>
<blockquote>
<p>这是引用的内容</p>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<p>这是引用的内容</p>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<hr>
<h2 id="四、分割线"><a href="#四、分割线" class="headerlink" title="四、分割线"></a>四、分割线</h2><figure class="highlight markdown"><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">---</span><br><span class="line">----</span><br><span class="line"><span class="emphasis">***</span></span><br><span class="line"><span class="strong">*****</span></span><br></pre></td></tr></table></figure>
<p>效果是一样的</p>
<hr>
<hr>
<hr>
<hr>
<h2 id="五、图片"><a href="#五、图片" class="headerlink" title="五、图片"></a>五、图片</h2><figure class="highlight markdown"><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 class="string">图片alt</span>](<span class="link">图片地址 "图片title"</span>)</span><br><span class="line"></span><br><span class="line">图片alt是显示在图片下面的文字。</span><br><span class="line">图片title是图片的标题,当鼠标移到图片上时显示的内容。</span><br><span class="line">title可加可不加。</span><br></pre></td></tr></table></figure>
<p><img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1595226300061&di=db607292ba30f33fbf5d1a700665b146&imgtype=0&src=http%3A%2F%2Foss.cloud.jstv.com%2Fcdv-yuntonglian_QMTNRK_YUNSHI_P00077713_24EB83BEF6E843C395AFCE5C54CD4ACF.jpg%3Fx-oss-process%3Dstyle%2Fpaipai" alt="好多梨" title="好多梨"></p>
<p>直接用html的img标签也能达成一样的效果</p>
<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"><<span class="name">img</span> <span class="attr">src</span>=<span class="string">"图片地址"</span> <span class="attr">alt</span>=<span class="string">"图片alt"</span> <span class="attr">title</span>=<span class="string">"图片title"</span>></span></span><br></pre></td></tr></table></figure>
<hr>
<h2 id="六、超链接"><a href="#六、超链接" class="headerlink" title="六、超链接"></a>六、超链接</h2><figure class="highlight markdown"><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="string">超链接名</span>](<span class="link">超链接地址 "超链接title"</span>)</span><br><span class="line">title可加可不加</span><br></pre></td></tr></table></figure>
<p><a href="http://baidu.com" target="_blank" rel="noopener">百度</a></p>
<p>与图片同理,直接用html的a标签也一样的</p>
<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"><<span class="name">a</span> <span class="attr">href</span>=<span class="string">"超链接地址"</span> <span class="attr">title</span>=<span class="string">"超链接title"</span>></span>超链接名<span class="tag"></<span class="name">a</span>></span></span><br></pre></td></tr></table></figure>
<hr>
<h2 id="七、列表"><a href="#七、列表" class="headerlink" title="七、列表"></a>七、列表</h2><figure class="highlight markdown"><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="bullet">- </span>列表内容</span><br><span class="line"><span class="bullet">+ </span>列表内容</span><br><span class="line"><span class="bullet">* </span>列表内容</span><br></pre></td></tr></table></figure>
<ul>
<li>列表内容</li>
</ul>
<ul>
<li>列表内容</li>
</ul>
<ul>
<li>列表内容</li>
</ul>
<figure class="highlight markdown"><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="bullet">1. </span>列表内容</span><br><span class="line"><span class="bullet"> 1. </span>列表内容</span><br><span class="line"><span class="bullet"> 2. </span>列表内容</span><br><span class="line"><span class="bullet">2. </span>列表内容</span><br><span class="line"><span class="bullet">3. </span>列表内容</span><br><span class="line"> </span><br><span class="line">次级列表开头3空格</span><br></pre></td></tr></table></figure>
<ol>
<li>列表内容<ol>
<li>列表内容</li>
<li>列表内容</li>
</ol>
</li>
<li>列表内容</li>
<li>列表内容</li>
</ol>
<hr>
<h2 id="八、表格"><a href="#八、表格" class="headerlink" title="八、表格"></a>八、表格</h2><figure class="highlight markdown"><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">表头|表头|表头</span><br><span class="line">---|:--:|---:</span><br><span class="line">内容|内容|内容</span><br><span class="line">内容|内容|内容</span><br><span class="line"></span><br><span class="line">第二行分割表头和内容。</span><br><span class="line"><span class="bullet">- </span>有一个就行,为了对齐,多加了几个</span><br><span class="line">文字默认居左</span><br><span class="line">-两边加:表示文字居中</span><br><span class="line">-右边加:表示文字居右</span><br><span class="line">注:原生的语法两边都要用 | 包起来。此处省略</span><br></pre></td></tr></table></figure>
<table>
<thead>
<tr>
<th>姓名</th>
<th align="center">技能</th>
<th align="right">排行</th>
</tr>
</thead>
<tbody><tr>
<td>刘备</td>
<td align="center">哭</td>
<td align="right">大哥</td>
</tr>
<tr>
<td>关羽</td>
<td align="center">打</td>
<td align="right">二哥</td>
</tr>
<tr>
<td>张飞</td>
<td align="center">骂</td>
<td align="right">三弟</td>
</tr>
</tbody></table>
<hr>
<h3 id="九、代码"><a href="#九、代码" class="headerlink" title="九、代码"></a>九、代码</h3><figure class="highlight markdown"><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"><span class="code">`print()`</span>函数</span><br><span class="line">反引号包裹代码片段</span><br><span class="line"></span><br><span class="line"><span class="code"> function fun(){</span></span><br><span class="line"><span class="code"> alert("这梨是好多梨");</span></span><br><span class="line"><span class="code"> }</span></span><br><span class="line"><span class="code"> fun();</span></span><br><span class="line">制表符或4个空格后跟代码块</span><br><span class="line"></span><br><span class="line">或可用上下各3个反引号包裹代码块,同时可以在上3个反引号之后指定代码语言</span><br></pre></td></tr></table></figure>
<p><code>print()</code>函数</p>
<figure class="highlight javascript"><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"><span class="function"><span class="keyword">function</span> <span class="title">fun</span>(<span class="params"></span>)</span>{</span><br><span class="line"> alert(<span class="string">"这梨是好多梨"</span>);</span><br><span class="line">}</span><br><span class="line">fun();</span><br></pre></td></tr></table></figure>
<hr>
<h3 id="十、段落"><a href="#十、段落" class="headerlink" title="十、段落"></a>十、段落</h3><pre><code>一行文字后跟至少2空格后回车换行
或者直接换两行
否则会算进同一行</code></pre><p>没有加2空格的回车<br>第二行</p>
<p>加了2空格的回车<br>第二行</p>
<hr>
<h3 id="十一、特殊技巧"><a href="#十一、特殊技巧" class="headerlink" title="十一、特殊技巧"></a>十一、特殊技巧</h3><pre><code>1. 支持的HTML元素
2. 转义字符\
3. 数学公式
4. 绘制流程图、时序图、甘特图等</code></pre><p><a href="https://www.runoob.com/markdown/md-advance.html" target="_blank" rel="noopener">联网点我查看</a></p>
</div>
<footer class="article-footer">
<a data-url="http://yoursite.com/2020/07/20/Markdown%E5%B8%B8%E7%94%A8%E8%AF%AD%E6%B3%95%E7%AE%80%E4%BB%8B/" data-id="ckcu3home0000p0vpf5sf047z" class="article-share-link">Share</a>
</footer>
</div>
</article>
<article id="post-hello-world" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2020/07/18/hello-world/" class="article-date">
<time datetime="2020-07-18T02:49:12.833Z" itemprop="datePublished">2020-07-18</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2020/07/18/hello-world/">Hello World</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>Welcome to <a href="https://hexo.io/" target="_blank" rel="noopener">Hexo</a>! This is your very first post. Check <a href="https://hexo.io/docs/" target="_blank" rel="noopener">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a href="https://hexo.io/docs/troubleshooting.html" target="_blank" rel="noopener">troubleshooting</a> or you can ask me on <a href="https://github.com/hexojs/hexo/issues" target="_blank" rel="noopener">GitHub</a>.</p>
<h2 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><h3 id="Create-a-new-post"><a href="#Create-a-new-post" class="headerlink" title="Create a new post"></a>Create a new post</h3><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 new <span class="string">"My New Post"</span></span><br></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/writing.html" target="_blank" rel="noopener">Writing</a></p>
<h3 id="Run-server"><a href="#Run-server" class="headerlink" title="Run server"></a>Run server</h3><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 server</span><br></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/server.html" target="_blank" rel="noopener">Server</a></p>
<h3 id="Generate-static-files"><a href="#Generate-static-files" class="headerlink" title="Generate static files"></a>Generate static files</h3><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 generate</span><br></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/generating.html" target="_blank" rel="noopener">Generating</a></p>
<h3 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h3><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 deploy</span><br></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/one-command-deployment.html" target="_blank" rel="noopener">Deployment</a></p>
</div>
<footer class="article-footer">
<a data-url="http://yoursite.com/2020/07/18/hello-world/" data-id="ckcr26mc50000qovp2dhzff1m" class="article-share-link">Share</a>
</footer>
</div>
</article>
</section>
<aside id="sidebar">
<div class="widget-wrap">
<h3 class="widget-title">Archives</h3>
<div class="widget">
<ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/09/">September 2020</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/08/">August 2020</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/07/">July 2020</a></li></ul>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">Recent Posts</h3>
<div class="widget">
<ul>
<li>
<a href="/2020/09/07/js%E9%87%8CforEach%E9%81%8D%E5%8E%86%E4%B8%AD%E4%BD%BF%E7%94%A8continue%E6%8A%A5%E9%94%99/">js里forEach遍历中使用continue报错</a>
</li>
<li>
<a href="/2020/09/04/table%E4%B8%AD%E6%BA%A2%E5%87%BA%E6%96%87%E6%9C%AC%E6%98%BE%E7%A4%BA'...'/">table中溢出文本显示'...'</a>
</li>
<li>
<a href="/2020/08/03/vue-router%E9%BB%98%E8%AE%A4%E6%98%BE%E7%A4%BA%E5%AD%90%E8%B7%AF%E7%94%B1/">vue-router默认显示子路由</a>
</li>
<li>
<a href="/2020/07/20/Markdown%E5%B8%B8%E7%94%A8%E8%AF%AD%E6%B3%95%E7%AE%80%E4%BB%8B/">Markdown常用语法简介</a>
</li>
<li>
<a href="/2020/07/18/hello-world/">Hello World</a>
</li>
</ul>
</div>
</div>
</aside>
</div>
<footer id="footer">
<div class="outer">
<div id="footer-info" class="inner">
© 2020 John Doe<br>
Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>
</div>
</div>
</footer>
</div>
<nav id="mobile-nav">
<a href="/" class="mobile-nav-link">Home</a>
<a href="/archives" class="mobile-nav-link">Archives</a>
</nav>
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css">
<script src="/fancybox/jquery.fancybox.pack.js"></script>
<script src="/js/script.js"></script>
</div>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。