Deploying to gh-pages from @ harttle/liquidjs@70fdb7af48 🚀

This commit is contained in:
harttle
2021-09-30 16:55:43 +00:00
parent cec0814a9b
commit 9a2a2bfd55
515 changed files with 11719 additions and 9833 deletions
+8 -8
View File
@@ -36,8 +36,8 @@
<link rel="stylesheet" href="../../css/navy.css">
<link rel="alternate" href="../../atom.xml" title="LiquidJS">
</head>
<link rel="alternate" href="../../atom.xml" title="LiquidJS" type="application/atom+xml">
<meta name="generator" content="Hexo 5.4.0"></head>
<body>
<div id="container">
@@ -63,7 +63,7 @@
</select>
</div>
<a href="https://github.com/harttle/liquidjs" target="_blank" rel="noopener external nofollow noreferrer" id="github-link-wrap" class="main-nav-link"><i class="icon-github"></i>Github</a>
<a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs" id="github-link-wrap" class="main-nav-link"><i class="icon-github"></i>Github</a>
<a id="mobile-nav-toggle">
<span class="mobile-nav-toggle-bar"></span>
<span class="mobile-nav-toggle-bar"></span>
@@ -87,12 +87,12 @@
<header class="article-header">
<h1 class="article-title" itemprop="name">真和假</h1>
<a href="https://github.com/harttle/liquidjs/edit/master/docs/source/zh-cn/tutorials/truthy-and-falsy.md" target="_blank" rel="noopener external nofollow noreferrer" class="article-edit-link" title="改进这篇文档"><i class="icon-pencil"></i></a>
<a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs/edit/master/docs/source/zh-cn/tutorials/truthy-and-falsy.md" class="article-edit-link" title="改进这篇文档"><i class="icon-pencil"></i></a>
</header>
<div class="article-content" itemprop="articleBody">
<p>虽然我们希望 <a href="https://www.npmjs.com/package/liquidjs" target="_blank" rel="noopener external nofollow noreferrer">Liquid</a> 是平台无关的,但 JavaScript 版本和 <a href="https://shopify.github.io/liquid" target="_blank" rel="noopener external nofollow noreferrer">Ruby 版本</a> 仍然有<a href="https://github.com/harttle/liquidjs#differences-and-limitations" target="_blank" rel="noopener external nofollow noreferrer">很多区别</a>,真值就是其中之一。</p>
<h2 id="真值表" class="article-heading"><a href="#真值表" class="headerlink" title="真值表"></a>真值表<a class="article-anchor" href="#真值表" aria-hidden="true"></a></h2><p>根据 <a href="https://shopify.github.io/liquid/basics/truthy-and-falsy/" target="_blank" rel="noopener external nofollow noreferrer">Shopify 的文档</a>,Ruby 版本除了 <code>false</code> 和 <code>nil</code> 之外的所有值都是真,但 JavaScript 有完全不同的类型系统,比如我们有 <code>undefined</code> 类型,以及不区分 <code>integer</code> 和 <code>float</code>,因此有些不同:</p>
<p>虽然我们希望 <a target="_blank" rel="noopener external nofollow noreferrer" href="https://www.npmjs.com/package/liquidjs">Liquid</a> 是平台无关的,但 JavaScript 版本和 <a target="_blank" rel="noopener external nofollow noreferrer" href="https://shopify.github.io/liquid">Ruby 版本</a> 仍然有<a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/harttle/liquidjs#differences-and-limitations">很多区别</a>,真值就是其中之一。</p>
<h2 id="真值表" class="article-heading"><a href="#真值表" class="headerlink" title="真值表"></a>真值表<a class="article-anchor" href="#真值表" aria-hidden="true"></a></h2><p>根据 <a target="_blank" rel="noopener external nofollow noreferrer" href="https://shopify.github.io/liquid/basics/truthy-and-falsy/">Shopify 的文档</a>,Ruby 版本除了 <code>false</code> 和 <code>nil</code> 之外的所有值都是真,但 JavaScript 有完全不同的类型系统,比如我们有 <code>undefined</code> 类型,以及不区分 <code>integer</code> 和 <code>float</code>,因此有些不同:</p>
<table>
<thead>
<tr>
@@ -225,7 +225,7 @@
</div>
<footer class="article-footer">
<time class="article-footer-updated" datetime="2021-09-26T12:45:03.359Z" itemprop="dateModified">上次更新:2021-09-26</time>
<time class="article-footer-updated" datetime="2021-09-30T16:54:19.718Z" itemprop="dateModified">上次更新:2021-09-30</time>
<a href="operators.html" class="article-footer-prev" title="运算符"><i class="icon-chevron-left"></i><span>上一页</span></a><a href="migrate-to-9.html" class="article-footer-next" title="迁移到 LiquidJS 9"><span>下一页</span><i class="icon-chevron-right"></i></a>
</footer>
</div>
@@ -234,7 +234,7 @@
<div id="article-toc-inner">
<div id="article-toc-inner-list">
<strong class="sidebar-title">目录</strong>
<ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#真值表"><span class="toc-text">真值表</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#使用-JavaScript-真值"><span class="toc-text">使用 JavaScript 真值</span></a></li></ol>
<ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%9C%9F%E5%80%BC%E8%A1%A8"><span class="toc-text">真值表</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E4%BD%BF%E7%94%A8-JavaScript-%E7%9C%9F%E5%80%BC"><span class="toc-text">使用 JavaScript 真值</span></a></li></ol>
</div>
<a href="#" id="article-toc-top">回到顶部</a>
</div>