Skip to content

Commit

Permalink
Site updated: 2023-10-29 13:15:59
Browse files Browse the repository at this point in the history
  • Loading branch information
fengshaolong committed Oct 29, 2023
1 parent 0ff3edd commit 31b7796
Show file tree
Hide file tree
Showing 142 changed files with 425 additions and 423 deletions.
6 changes: 3 additions & 3 deletions archives/2021/11/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions archives/2021/12/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions archives/2021/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions archives/2022/01/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions archives/2022/02/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions archives/2022/03/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions archives/2022/03/page/2/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions archives/2022/04/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions archives/2022/05/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions archives/2022/06/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions archives/2022/08/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions archives/2022/10/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions archives/2022/11/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions archives/2022/12/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions archives/2022/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions archives/2022/page/2/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions archives/2022/page/3/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions archives/2022/page/4/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions archives/2023/01/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions archives/2023/04/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions archives/2023/08/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions archives/2023/10/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions archives/2023/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions archives/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions archives/page/2/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions archives/page/3/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions archives/page/4/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions archives/page/5/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion articles/7cf6476b.html

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions articles/957893b.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
isHome: false,
isHighlightShrink: false,
isToc: true,
postUpdate: '2023-05-12 18:42:08'
postUpdate: '2023-10-29 13:14:52'
}</script><noscript><style type="text/css">
#nav {
opacity: 1
Expand Down Expand Up @@ -133,13 +133,14 @@
}
}
detectApple()
})(window)</script><link rel="stylesheet" href="/css/onePic.css"><link rel="stylesheet" href="/css/style.css"><link rel="stylesheet" href="/css/wind.css"><link rel="stylesheet" href="/css/custom.css"><link rel="stylesheet" href="/css/universe.css"><link rel="stylesheet" href="/css/cursor.css"><link rel="stylesheet" href="/css/cat.css"><link rel="stylesheet" href="/css/readPercent.css"><link rel="stylesheet" href="/css/txMap.css"><link rel="stylesheet" href="/css/avator.css"><div id="myscoll"></div><meta name="generator" content="Hexo 6.3.0"></head><body><div id="web_bg"></div><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src= "https://cdn.chrelyonly.cf/gh/fsllala/img@main/loading.gif" data-lazy-src="https://cdn.chrelyonly.cf/gh/fsllala/img@main/1656236729350avatar.jpg" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">43</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">53</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">49</div></a></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div></div></div></div><div class="post" id="body-wrap"><header class="post-bg" id="page-header" style="background-image: url('https://cdn.chrelyonly.cf/gh/fsllala/default_cover@main/default_cover_34.webp')"><nav id="nav"><span id="blog_name"><a id="site-name" href="/">Forward の Blog</a></span><div id="menus"><div id="search-button"><a class="site-page social-icon search"><i class="fas fa-search fa-fw"></i><span> 搜索</span></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div></div><div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="post-info"><h1 class="post-title">异步处理</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2021-12-25T09:48:34.000Z" title="发表于 2021-12-25 17:48:34">2021-12-25</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2023-05-12T10:42:08.655Z" title="更新于 2023-05-12 18:42:08">2023-05-12</time></span><span class="post-meta-categories"><span class="post-meta-separator">|</span><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/categories/JS/">JS</a><i class="fas fa-angle-right post-meta-separator"></i><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/categories/JS/%E5%BC%82%E6%AD%A5%E5%A4%84%E7%90%86/">异步处理</a></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-wordcount"><i class="far fa-file-word fa-fw post-meta-icon"></i><span class="post-meta-label">字数总计:</span><span class="word-count">2.9k</span><span class="post-meta-separator">|</span><i class="far fa-clock fa-fw post-meta-icon"></i><span class="post-meta-label">阅读时长:</span><span>11分钟</span></span><span class="post-meta-separator">|</span><span class="post-meta-pv-cv" id="" data-flag-title="异步处理"><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">阅读量:</span><span id="busuanzi_value_page_pv"><i class="fa-solid fa-spinner fa-spin"></i></span></span></div></div></div></header><main class="layout" id="content-inner"><div id="post"><article class="post-content" id="article-container"><h1 id="一、回调函数"><a href="#一、回调函数" class="headerlink" title="一、回调函数"></a>一、回调函数</h1><ul>
})(window)</script><link rel="stylesheet" href="/css/onePic.css"><link rel="stylesheet" href="/css/style.css"><link rel="stylesheet" href="/css/wind.css"><link rel="stylesheet" href="/css/custom.css"><link rel="stylesheet" href="/css/universe.css"><link rel="stylesheet" href="/css/cursor.css"><link rel="stylesheet" href="/css/cat.css"><link rel="stylesheet" href="/css/readPercent.css"><link rel="stylesheet" href="/css/txMap.css"><link rel="stylesheet" href="/css/avator.css"><div id="myscoll"></div><meta name="generator" content="Hexo 6.3.0"></head><body><div id="web_bg"></div><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src= "https://cdn.chrelyonly.cf/gh/fsllala/img@main/loading.gif" data-lazy-src="https://cdn.chrelyonly.cf/gh/fsllala/img@main/1656236729350avatar.jpg" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">43</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">53</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">49</div></a></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div></div></div></div><div class="post" id="body-wrap"><header class="post-bg" id="page-header" style="background-image: url('https://cdn.chrelyonly.cf/gh/fsllala/default_cover@main/default_cover_34.webp')"><nav id="nav"><span id="blog_name"><a id="site-name" href="/">Forward の Blog</a></span><div id="menus"><div id="search-button"><a class="site-page social-icon search"><i class="fas fa-search fa-fw"></i><span> 搜索</span></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div></div><div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="post-info"><h1 class="post-title">异步处理</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2021-12-25T09:48:34.000Z" title="发表于 2021-12-25 17:48:34">2021-12-25</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2023-10-29T05:14:52.152Z" title="更新于 2023-10-29 13:14:52">2023-10-29</time></span><span class="post-meta-categories"><span class="post-meta-separator">|</span><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/categories/JS/">JS</a><i class="fas fa-angle-right post-meta-separator"></i><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/categories/JS/%E5%BC%82%E6%AD%A5%E5%A4%84%E7%90%86/">异步处理</a></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-wordcount"><i class="far fa-file-word fa-fw post-meta-icon"></i><span class="post-meta-label">字数总计:</span><span class="word-count">2.9k</span><span class="post-meta-separator">|</span><i class="far fa-clock fa-fw post-meta-icon"></i><span class="post-meta-label">阅读时长:</span><span>11分钟</span></span><span class="post-meta-separator">|</span><span class="post-meta-pv-cv" id="" data-flag-title="异步处理"><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">阅读量:</span><span id="busuanzi_value_page_pv"><i class="fa-solid fa-spinner fa-spin"></i></span></span></div></div></div></header><main class="layout" id="content-inner"><div id="post"><article class="post-content" id="article-container"><h1 id="一、回调函数"><a href="#一、回调函数" class="headerlink" title="一、回调函数"></a>一、回调函数</h1><ul>
<li><p>概念:一个函数作为另一个函数的参数;先执行一个函数,把他的执行结果作为另一个函数的参数;</p>
</li>
<li><p>弊端:会产生回调地狱。(回调函数的层层嵌套 例如:京东首页的tab栏,家用电器里面有电视,电视里面有各种牌子,不同牌子又有不同的配色等等,类似这样下一级的参数为上一级的返回值的)</p>
</li>
</ul>
<h1 id="二、Promise"><a href="#二、Promise" class="headerlink" title="二、Promise"></a>二、Promise</h1><ul>
<h1 id="二、Promise"><a href="#二、Promise" class="headerlink" title="二、Promise"></a>二、Promise</h1><p>代码可见:<a target="_blank" rel="noopener" href="https://github.com/fsllala/study/tree/main/JS">github</a></p>
<ul>
<li><p>概念:</p>
<ol>
<li>Promise 是异步编程的一种解决方案,比传统的回调函数和事件更合理、更强大</li>
Expand Down
Loading

1 comment on commit 31b7796

@vercel
Copy link

@vercel vercel bot commented on 31b7796 Oct 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.