<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>JaySong</title>
        <link>https://paragraph.com/@coinbridge</link>
        <description>undefined</description>
        <lastBuildDate>Wed, 03 Jun 2026 17:14:33 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en</language>
        <image>
            <title>JaySong</title>
            <url>https://storage.googleapis.com/papyrus_images/3215edd3ae1a08c51cf1f4f13a12aa1052b502759a24b5545def5a37515c474b.webp</url>
            <link>https://paragraph.com/@coinbridge</link>
        </image>
        <copyright>All rights reserved</copyright>
        <item>
            <title><![CDATA[关于周末]]></title>
            <link>https://paragraph.com/@coinbridge/o3pWc6Gxq44AsaBL5x4B</link>
            <guid>o3pWc6Gxq44AsaBL5x4B</guid>
            <pubDate>Fri, 05 Aug 2022 04:23:58 GMT</pubDate>
            <description><![CDATA[2019年秋天，来到郊外一座深山，偶尔发现一处新建的山居民宿，民宿由一幢幢别墅组团而成，于是便临时起意住了下来。到了夜晚的时候，发现房间的屋顶有很大一部分居然是由玻璃覆盖的，通过硕大的玻璃窗，可以看见夜空的星星与淡然的流云，于是和孩子一起观望了星空许久时间，直到困意袭来，各自睡去。 这是我关于周末度假的最后一个深刻的记忆。近两三年来，每当心情不怎么好想要出去玩的时候，总会想到这个场景。三年前度假的那个地方，距离居住地不过三百来公里，放在以前，周五下班的时候开车就可以过去，而现在，则需要反复权衡会不会受疫情影响，想来想去，就取消了计划。 我的周末生活起源于2008年。在此之前，也不是没有过出去过周末的经历，但直到2008年，每个周末必然去郊区度过，成为一个习惯。至于为什么周末生活从这年开始，原因也很简单，那是因为家里有了第一辆车。车能放大人的活动空间，从2008到2018年这十年间，利用周末时间，我们把北京所有的郊区都逛了一个遍。 所谓的郊区周末度假，其实很单调，主要由以下几个流程组成——出城堵车，安营扎寨，喝酒打牌，返程堵车。回想过去那段美好的周末生活，印象深刻的有两件事，一是烧...]]></description>
            <content:encoded><![CDATA[<p>2019年秋天，来到郊外一座深山，偶尔发现一处新建的山居民宿，民宿由一幢幢别墅组团而成，于是便临时起意住了下来。到了夜晚的时候，发现房间的屋顶有很大一部分居然是由玻璃覆盖的，通过硕大的玻璃窗，可以看见夜空的星星与淡然的流云，于是和孩子一起观望了星空许久时间，直到困意袭来，各自睡去。</p><p>这是我关于周末度假的最后一个深刻的记忆。近两三年来，每当<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.bidushe.com/qinggan/suibi/">心情</a>不怎么好想要出去玩的时候，总会想到这个场景。三年前度假的那个地方，距离居住地不过三百来公里，放在以前，周五下班的时候开车就可以过去，而现在，则需要反复权衡会不会受疫情影响，想来想去，就取消了计划。</p><p>我的周末<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.bidushe.com/jingdian/suibi/">生活</a>起源于2008年。在此之前，也不是没有过出去过周末的经历，但直到2008年，每个周末必然去郊区度过，成为一个习惯。至于为什么周末生活从这年开始，原因也很简单，那是因为家里有了第一辆车。车能放大人的活动空间，从2008到2018年这十年间，利用周末时间，我们把北京所有的郊区都逛了一个遍。</p><p>所谓的郊区周末度假，其实很单调，主要由以下几个流程组成——出城堵车，安营扎寨，喝酒打牌，返程堵车。回想过去那段美好的周末生活，印象深刻的有两件事，一是烧烤，自带烧烤盘和木炭以及穿好的羊肉串、鸡翅，走到哪儿烤到哪儿，在山脚的河沟边烤，在山顶的泉水边烤……那时，不少地方都辟有供游人烧烤的地方，现在这种地方已经基本寻不到了。</p><p>第二件事是打麻将。在家里打麻将是没啥意思的，每当两个以上家庭出游的时候，总会随车携带简易麻将和麻将桌，吃完午饭后，或者晚上睡觉前，都会玩一会儿。有一次堵车严重，干脆把车停路边空闲处，两家人在路边打起麻将来，引来不少羡慕（嫌弃）的眼光，那时年轻，对此不以为然。</p><p>这两件事情，时常让我想起图书或报纸描述过的周末生活，“每到周末，开出城的汽车，在出城的道路上排成了长队……有的家庭因为忍受不了排队，干脆停车到路边的小树林里烧烤去了。”这样的描述，我和我的朋友们，都无数次经历过，虽然单调，但乐此不疲。疫情期间，不少人怀念开车度假拥堵的路上，觉得能被堵着，也蛮开心的，起码知道，车队前前后后的人，都有着度假式的轻松。</p><p>我在互联网大厂工作过五年。可能那会儿还不像现在这么“内卷”，职场压力并不算大，周末加班的时候也不多。反正在我的记忆里，上过五年班，周末顶多加班过三五次，多数时候，都是工作日加把手，把事情提前搞定，以便领导在提出加班要求的时候，把任务一交，扬长而去。我觉得，我们这批“70后”，对周末的重视与捍卫，还是很认真的。</p><p>期待疫情之后，所有人都能够拥有<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.bidushe.com/diary/kuaile/">快乐</a>的周末生活方式。</p>]]></content:encoded>
            <author>coinbridge@newsletter.paragraph.com (JaySong)</author>
        </item>
        <item>
            <title><![CDATA[HEXO发布新文章]]></title>
            <link>https://paragraph.com/@coinbridge/hexo</link>
            <guid>sj0CGCJD8Vrga7lR5EMJ</guid>
            <pubDate>Sun, 27 Mar 2022 10:08:42 GMT</pubDate>
            <description><![CDATA[HEXO发布新文章2021-06-263 发布流程新建文章发布文章推送文章清理缓存新建文章hexo new titletitle就是新建的文章的名字,找到生成的markdown文章进行编写发布文章hexo generate推送文章hexo deploy推送到github清理缓存hexo clean清除缓存文件 (db.json) 和已生成的静态文件 (public)。在某些情况（尤其是更换主题后），如果发现您对站点的更改无论如何也不生效，您可能需要运行该命令。]]></description>
            <content:encoded><![CDATA[<h1 id="h-hexo" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">HEXO发布新文章</h1><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://jaysongforever.github.io/2021/06/26/HEXO%E5%8F%91%E5%B8%83%E6%96%B0%E6%96%87%E7%AB%A0/">2021-06-26</a>3</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://jaysongforever.github.io/tags/%E5%8F%91%E5%B8%83%E6%B5%81%E7%A8%8B/">发布流程</a></p><ol><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://jaysongforever.github.io/2021/06/26/HEXO%E5%8F%91%E5%B8%83%E6%96%B0%E6%96%87%E7%AB%A0/#%E6%96%B0%E5%BB%BA%E6%96%87%E7%AB%A0">新建文章</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://jaysongforever.github.io/2021/06/26/HEXO%E5%8F%91%E5%B8%83%E6%96%B0%E6%96%87%E7%AB%A0/#%E5%8F%91%E5%B8%83%E6%96%87%E7%AB%A0">发布文章</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://jaysongforever.github.io/2021/06/26/HEXO%E5%8F%91%E5%B8%83%E6%96%B0%E6%96%87%E7%AB%A0/#%E6%8E%A8%E9%80%81%E6%96%87%E7%AB%A0">推送文章</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://jaysongforever.github.io/2021/06/26/HEXO%E5%8F%91%E5%B8%83%E6%96%B0%E6%96%87%E7%AB%A0/#%E6%B8%85%E7%90%86%E7%BC%93%E5%AD%98">清理缓存</a></p></li></ol><h4 id="h-" class="text-xl font-header !mt-6 !mb-3 first:!mt-0 first:!mb-0">新建文章</h4><blockquote><h4 id="h-hexo-new-title" class="text-xl font-header !mt-6 !mb-3 first:!mt-0 first:!mb-0">hexo new title</h4></blockquote><p>title就是新建的文章的名字,找到生成的markdown文章进行编写</p><h4 id="h-" class="text-xl font-header !mt-6 !mb-3 first:!mt-0 first:!mb-0">发布文章</h4><blockquote><h4 id="h-hexo-generate" class="text-xl font-header !mt-6 !mb-3 first:!mt-0 first:!mb-0">hexo generate</h4></blockquote><h4 id="h-" class="text-xl font-header !mt-6 !mb-3 first:!mt-0 first:!mb-0">推送文章</h4><blockquote><h4 id="h-hexo-deploy" class="text-xl font-header !mt-6 !mb-3 first:!mt-0 first:!mb-0">hexo deploy</h4></blockquote><p>推送到github</p><h4 id="h-" class="text-xl font-header !mt-6 !mb-3 first:!mt-0 first:!mb-0">清理缓存</h4><blockquote><h4 id="h-hexo-clean" class="text-xl font-header !mt-6 !mb-3 first:!mt-0 first:!mb-0">hexo clean</h4></blockquote><p>清除缓存文件 (db.json) 和已生成的静态文件 (public)。在某些情况（尤其是更换主题后），如果发现您对站点的更改无论如何也不生效，您可能需要运行该命令。</p>]]></content:encoded>
            <author>coinbridge@newsletter.paragraph.com (JaySong)</author>
            <enclosure url="https://storage.googleapis.com/papyrus_images/c317f2092fe5fbb88c52c08f90165640463a5efd39586f67e2bbba7e9871bc2e.jpg" length="0" type="image/jpg"/>
        </item>
        <item>
            <title><![CDATA[JavaScript Array 奇技淫巧]]></title>
            <link>https://paragraph.com/@coinbridge/javascript-array</link>
            <guid>kTDT2ygWxs5SeajtvkSA</guid>
            <pubDate>Tue, 09 Nov 2021 02:50:19 GMT</pubDate>
            <description><![CDATA[1.1 求和方法一：Array.prototype.forEach()var total = 0; [1, 2, 3].forEach(function (num) { total += num; }); 复制代码 方法二：Array.prototype.reduce()var total = [1, 2, 3].reduce(function (sum, current) { return sum + current; }, 0); 复制代码 1.2 排序方法一：sort()// 默认是升序 [1, 2, 3, 4].sort((a, b) => a - b); // [1, 2, 3, 4] // 降序 [1, 2, 3, 4].sort((a, b) => b - a); // [4, 3, 2, 1] 复制代码 方法二：排序算法参考文献十大经典排序算法 - Git BookJavaScript 数据结构与算法之美 - 十大经典排序算法 - 天明夜尽1.3 取最大值方法一：Math.max()Math.max() // -Infinity，即 -∞ Math.max(Inf...]]></description>
            <content:encoded><![CDATA[<h2 id="h-11" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">1.1 求和</h2><h3 id="h-arrayprototypeforeach" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">方法一：Array.prototype.forEach()</h3><pre data-type="codeBlock" text="var total = 0;
[1, 2, 3].forEach(function (num) {
  total += num;
});
复制代码
"><code><span class="hljs-keyword">var</span> total <span class="hljs-operator">=</span> <span class="hljs-number">0</span>;
[<span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">3</span>].forEach(<span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">num</span>) </span>{
  total <span class="hljs-operator">+</span><span class="hljs-operator">=</span> num;
});
复制代码
</code></pre><h3 id="h-arrayprototypereduce" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">方法二：Array.prototype.reduce()</h3><pre data-type="codeBlock" text="var total = [1, 2, 3].reduce(function (sum, current) {
  return sum + current;
}, 0);
复制代码
"><code><span class="hljs-keyword">var</span> total <span class="hljs-operator">=</span> [<span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">3</span>].reduce(<span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">sum, current</span>) </span>{
  <span class="hljs-keyword">return</span> sum <span class="hljs-operator">+</span> current;
}, <span class="hljs-number">0</span>);
复制代码
</code></pre><h2 id="h-12" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">1.2 排序</h2><h3 id="h-sort" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">方法一：sort()</h3><pre data-type="codeBlock" text="// 默认是升序
[1, 2, 3, 4].sort((a, b) =&gt; a - b); // [1, 2, 3, 4]
// 降序
[1, 2, 3, 4].sort((a, b) =&gt; b - a); // [4, 3, 2, 1]
复制代码
"><code><span class="hljs-comment">// 默认是升序</span>
[<span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">3</span>, <span class="hljs-number">4</span>].sort((a, b) <span class="hljs-operator">=</span><span class="hljs-operator">></span> a <span class="hljs-operator">-</span> b); <span class="hljs-comment">// [1, 2, 3, 4]</span>
<span class="hljs-comment">// 降序</span>
[<span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">3</span>, <span class="hljs-number">4</span>].sort((a, b) <span class="hljs-operator">=</span><span class="hljs-operator">></span> b <span class="hljs-operator">-</span> a); <span class="hljs-comment">// [4, 3, 2, 1]</span>
复制代码
</code></pre><h3 id="h-" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">方法二：排序算法</h3><p>参考文献</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://link.juejin.cn?target=https%3A%2F%2Fsort.hust.cc%2F">十大经典排序算法 - Git Book</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://juejin.cn/post/6844903902484103182#heading-5">JavaScript 数据结构与算法之美 - 十大经典排序算法 - 天明夜尽</a></p></li></ul><h2 id="h-13" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">1.3 取最大值</h2><h3 id="h-mathmax" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">方法一：Math.max()</h3><pre data-type="codeBlock" text="Math.max() // -Infinity，即 -∞

Math.max(Infinity, -Infinity) // Infinity，即 ∞

Math.max(...[1, 2, 3, 4]) // 4

Math.max.apply(this, [1, 2, 3, 4]) // 4

[1, 2, 3, 4].reduce( (prev, cur,curIndex,arr)=&gt; {
 return Math.max(prev,cur);
},0) // 4
复制代码
"><code>Math.<span class="hljs-built_in">max</span>() <span class="hljs-comment">// -Infinity，即 -∞</span>

Math.<span class="hljs-built_in">max</span>(Infinity, <span class="hljs-operator">-</span>Infinity) <span class="hljs-comment">// Infinity，即 ∞</span>

Math.<span class="hljs-built_in">max</span>(...[<span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">3</span>, <span class="hljs-number">4</span>]) <span class="hljs-comment">// 4</span>

Math.<span class="hljs-built_in">max</span>.apply(<span class="hljs-built_in">this</span>, [<span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">3</span>, <span class="hljs-number">4</span>]) <span class="hljs-comment">// 4</span>

[<span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">3</span>, <span class="hljs-number">4</span>].reduce( (prev, cur,curIndex,arr)<span class="hljs-operator">=</span><span class="hljs-operator">></span> {
 <span class="hljs-keyword">return</span> Math.<span class="hljs-built_in">max</span>(prev,cur);
},<span class="hljs-number">0</span>) <span class="hljs-comment">// 4</span>
复制代码
</code></pre><h2 id="h-14" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">1.4 判断是否包含某值</h2><h3 id="h-arrayincludes" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">方法一：Array.includes()</h3><pre data-type="codeBlock" text="[7, 8, 9].includes(4) // false
复制代码
"><code><span class="hljs-selector-attr">[7, 8, 9]</span><span class="hljs-selector-class">.includes</span>(<span class="hljs-number">4</span>) <span class="hljs-comment">// false</span>
复制代码
</code></pre><h3 id="h-arrayindexof" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">方法二：Array.indexOf()</h3><pre data-type="codeBlock" text="[7, 8, 9].indexOf(4) // -1 如果存在返回索引
[7, 8, 9].indexOf(9) // 2
复制代码
"><code><span class="hljs-selector-attr">[7, 8, 9]</span><span class="hljs-selector-class">.indexOf</span>(<span class="hljs-number">4</span>) <span class="hljs-comment">// -1 如果存在返回索引</span>
<span class="hljs-selector-attr">[7, 8, 9]</span><span class="hljs-selector-class">.indexOf</span>(<span class="hljs-number">9</span>) <span class="hljs-comment">// 2</span>
复制代码
</code></pre><h3 id="h-arrayfind" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">方法三：Array.find()</h3><p>如果数组中无值返回undefined</p><pre data-type="codeBlock" text="[7, 8, 9].find((item) =&gt; item === 4) // undefined
[7, 8, 9].find((item) =&gt; item === 9) // 9
复制代码
"><code>[<span class="hljs-number">7</span>, <span class="hljs-number">8</span>, <span class="hljs-number">9</span>].find((item) <span class="hljs-operator">=</span><span class="hljs-operator">></span> item <span class="hljs-operator">=</span><span class="hljs-operator">=</span><span class="hljs-operator">=</span> <span class="hljs-number">4</span>) <span class="hljs-comment">// undefined</span>
[<span class="hljs-number">7</span>, <span class="hljs-number">8</span>, <span class="hljs-number">9</span>].find((item) <span class="hljs-operator">=</span><span class="hljs-operator">></span> item <span class="hljs-operator">=</span><span class="hljs-operator">=</span><span class="hljs-operator">=</span> <span class="hljs-number">9</span>) <span class="hljs-comment">// 9</span>
复制代码
</code></pre><h3 id="h-arrayfindindex" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">方法四：Array.findIndex()</h3><p>如果数组中无值返回-1</p><pre data-type="codeBlock" text="[7, 8, 9].findIndex((item)=&gt; item === 4) // -1
[7, 8, 9].findIndex((item)=&gt; item === 9) // 2
复制代码
"><code>[<span class="hljs-number">7</span>, <span class="hljs-number">8</span>, <span class="hljs-number">9</span>].findIndex((item)<span class="hljs-operator">=</span><span class="hljs-operator">></span> item <span class="hljs-operator">=</span><span class="hljs-operator">=</span><span class="hljs-operator">=</span> <span class="hljs-number">4</span>) <span class="hljs-comment">// -1</span>
[<span class="hljs-number">7</span>, <span class="hljs-number">8</span>, <span class="hljs-number">9</span>].findIndex((item)<span class="hljs-operator">=</span><span class="hljs-operator">></span> item <span class="hljs-operator">=</span><span class="hljs-operator">=</span><span class="hljs-operator">=</span> <span class="hljs-number">9</span>) <span class="hljs-comment">// 2</span>
复制代码
</code></pre><h2 id="h-15" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">1.5 某一项设置值</h2><h3 id="h-arraysplice" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">方法一：Array.splice()</h3><pre data-type="codeBlock" text="arr = [&apos;aaa&apos;, &apos;bbbb&apos;, &apos;cccc&apos;, &apos;dddd&apos;]
arr.splice(3, 0, 3)
arr // [&apos;aaa&apos;, &apos;bbbb&apos;, &apos;cccc&apos;, 3, &apos;dddd&apos;]
复制代码
"><code>arr = <span class="hljs-selector-attr">[<span class="hljs-string">'aaa'</span>, <span class="hljs-string">'bbbb'</span>, <span class="hljs-string">'cccc'</span>, <span class="hljs-string">'dddd'</span>]</span>
arr<span class="hljs-selector-class">.splice</span>(<span class="hljs-number">3</span>, <span class="hljs-number">0</span>, <span class="hljs-number">3</span>)
arr // <span class="hljs-selector-attr">[<span class="hljs-string">'aaa'</span>, <span class="hljs-string">'bbbb'</span>, <span class="hljs-string">'cccc'</span>, 3, <span class="hljs-string">'dddd'</span>]</span>
复制代码
</code></pre><h2 id="h-16" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">1.6 每一项设置值</h2><h3 id="h-arrayfill" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">方法一：Array.fill()</h3><pre data-type="codeBlock" text="[7,8,9,10,11,12].fill() // [undefined, undefined, undefined, undefined, undefined, undefined]
[7,8,9,10,11,12].fill(7) // [7, 7, 7, 7, 7, 7]
[7,8,9,10,11,12].fill(3, 2, 4) // [7, 8, 3, 3, 11, 12]
复制代码
"><code><span class="hljs-selector-attr">[7,8,9,10,11,12]</span><span class="hljs-selector-class">.fill</span>() <span class="hljs-comment">// [undefined, undefined, undefined, undefined, undefined, undefined]</span>
<span class="hljs-selector-attr">[7,8,9,10,11,12]</span><span class="hljs-selector-class">.fill</span>(<span class="hljs-number">7</span>) <span class="hljs-comment">// [7, 7, 7, 7, 7, 7]</span>
<span class="hljs-selector-attr">[7,8,9,10,11,12]</span><span class="hljs-selector-class">.fill</span>(<span class="hljs-number">3</span>, <span class="hljs-number">2</span>, <span class="hljs-number">4</span>) <span class="hljs-comment">// [7, 8, 3, 3, 11, 12]</span>
复制代码
</code></pre><h3 id="h-arraymap" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">方法二：Array.map()</h3><pre data-type="codeBlock" text="[7, 8, 9].map((item, idx) =&gt; item % 2) // [1, 0, 1]
[7, 8, 9].map((item, idx) =&gt; idx) // [0, 1, 2]
复制代码
"><code>[<span class="hljs-number">7</span>, <span class="hljs-number">8</span>, <span class="hljs-number">9</span>].map((item, idx) <span class="hljs-operator">=</span><span class="hljs-operator">></span> item <span class="hljs-operator">%</span> <span class="hljs-number">2</span>) <span class="hljs-comment">// [1, 0, 1]</span>
[<span class="hljs-number">7</span>, <span class="hljs-number">8</span>, <span class="hljs-number">9</span>].map((item, idx) <span class="hljs-operator">=</span><span class="hljs-operator">></span> idx) <span class="hljs-comment">// [0, 1, 2]</span>
复制代码
</code></pre><h2 id="h-17" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">1.7 每一项是否满足</h2><h3 id="h-arrayevery" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">方法一：Array.every()</h3><pre data-type="codeBlock" text="[1,2,3].every(item=&gt;{return item&gt;2}) //false
复制代码
"><code>[<span class="hljs-number">1</span>,<span class="hljs-number">2</span>,<span class="hljs-number">3</span>].every(item<span class="hljs-operator">=</span><span class="hljs-operator">></span>{<span class="hljs-keyword">return</span> item<span class="hljs-operator">></span><span class="hljs-number">2</span>}) <span class="hljs-comment">//false</span>
复制代码
</code></pre><h2 id="h-18" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">1.8 有一项满足</h2><h3 id="h-arraysome" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">方法一：Array.some()</h3><pre data-type="codeBlock" text="[1,2,3].some(item=&gt;{return item&gt;2}) //true
"><code>[<span class="hljs-number">1</span>,<span class="hljs-number">2</span>,<span class="hljs-number">3</span>].some(item<span class="hljs-operator">=</span><span class="hljs-operator">></span>{<span class="hljs-keyword">return</span> item<span class="hljs-operator">></span><span class="hljs-number">2</span>}) <span class="hljs-comment">//true</span>
</code></pre>]]></content:encoded>
            <author>coinbridge@newsletter.paragraph.com (JaySong)</author>
        </item>
        <item>
            <title><![CDATA[NFT mint]]></title>
            <link>https://paragraph.com/@coinbridge/nft-mint</link>
            <guid>Lo1mwUkocTU0STTokikK</guid>
            <pubDate>Mon, 08 Nov 2021 01:51:28 GMT</pubDate>
            <description><![CDATA[模式合成以Edit模式进行。要预览您的条目，因为它将出现在您的出版物中，请进入Preview模式。您可以使用工具栏中的相关按钮在它们之间切换。导入条目要从其他地方导入条目，例如 Medium 或 Substack，请打开•••导航中的二级菜单，然后单击Import entry。接下来，输入您的条目的 URL。url 将被解析为 markdown，并设置为您的条目的内容。请仅导入您创建和拥有的内容。创建块要轻松创建媒体或经济区块，首先在您的条目内单击以将光标放置在您希望区块出现的位置。接下来，单击工具栏的块区域，或使用键盘快捷键聚焦⌘+/。将出现块菜单，显示所有可用的块。选择一个块会提示您输入辅助信息。满意后，请确认信息以将块插入到您的条目中。]]></description>
            <content:encoded><![CDATA[<h3 id="h-" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">模式</h3><p>合成以<code>Edit</code>模式进行。要预览您的条目，因为它将出现在您的出版物中，请进入<code>Preview</code>模式。您可以使用工具栏中的相关按钮在它们之间切换。</p><h3 id="h-" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">导入条目</h3><p>要从其他地方导入条目，例如 Medium 或 Substack，请打开<code>•••</code>导航中的二级菜单，然后单击<strong>Import entry</strong>。接下来，输入您的条目的 URL。url 将被解析为 markdown，并设置为您的条目的内容。请仅导入您创建和拥有的内容。</p><h3 id="h-" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">创建块</h3><p>要轻松创建媒体或经济区块，首先在您的条目内单击以将光标放置在您希望区块出现的位置。接下来，单击工具栏的<strong>块</strong>区域，或使用键盘快捷键聚焦<code>⌘+/</code>。将出现块菜单，显示所有可用的块。选择一个块会提示您输入辅助信息。满意后，请确认信息以将块插入到您的条目中。</p>]]></content:encoded>
            <author>coinbridge@newsletter.paragraph.com (JaySong)</author>
        </item>
        <item>
            <title><![CDATA[gogogo]]></title>
            <link>https://paragraph.com/@coinbridge/gogogo</link>
            <guid>NuICtiMqQmHHeXugvJsb</guid>
            <pubDate>Sat, 09 Oct 2021 14:51:51 GMT</pubDate>
            <description><![CDATA[this is a good idea]]></description>
            <content:encoded><![CDATA[<p>this is a good idea</p>]]></content:encoded>
            <author>coinbridge@newsletter.paragraph.com (JaySong)</author>
        </item>
    </channel>
</rss>