aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/guide/modules/index.html
diff options
context:
space:
mode:
authorA1lo <yin199909@aliyun.com>2022-03-18 21:53:46 +0800
committerGitHub <noreply@github.com>2022-03-18 21:53:46 +0800
commit8824afb494e5398bc0efcf5f7eb78782096fc90c (patch)
tree92fd44c01908cc7b39da131bcac6a0cae024bb6f /files/zh-cn/web/javascript/guide/modules/index.html
parente48f0a637c058b51a6268e0c2c384957e03d2b60 (diff)
downloadtranslated-content-8824afb494e5398bc0efcf5f7eb78782096fc90c.tar.gz
translated-content-8824afb494e5398bc0efcf5f7eb78782096fc90c.tar.bz2
translated-content-8824afb494e5398bc0efcf5f7eb78782096fc90c.zip
Replace marco `anch` with `<a>` tag for `zh-CN` (#4668)
* replace anch with tag `<a>` * auto replace anch with scripts * fix: resolve some incorrect anchors * replace anch with markdown link in markdown files * sync with english version for `Properties` * fix: resolve some incorrect anchors * using `Specifications` marco to replace `<table>` * fix: resolve some incorrect anchors * remove the `noteCard` and add a `h2` head * fix: resolve some incorrect anchors * remove the duplicated content * fix: resolve some incorrect anchors * fix: resolve some incorrect anchors * revert the content change and replace anch * revert the content change and replace anch * revert the content chang * fix: correct the `href` * revert content changes and replace the anch * fix: resolve some incorrect anchors * fix: resolve some incorrect anchors * fix: resolve some incorrect anchors
Diffstat (limited to 'files/zh-cn/web/javascript/guide/modules/index.html')
-rw-r--r--files/zh-cn/web/javascript/guide/modules/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/zh-cn/web/javascript/guide/modules/index.html b/files/zh-cn/web/javascript/guide/modules/index.html
index e3db44e9a0..323cb679ea 100644
--- a/files/zh-cn/web/javascript/guide/modules/index.html
+++ b/files/zh-cn/web/javascript/guide/modules/index.html
@@ -217,7 +217,7 @@ reportPerimeter(square1.length, reportList);
<pre class="brush: js">import {default as randomSquare} from './modules/square.mjs';</pre>
<div class="note">
-<p><strong>备注:</strong>重命名导出项的as语法在下面的{{anch("Renaming imports and exports")}}部分中进行了说明。</p>
+<p><strong>备注:</strong>重命名导出项的as语法在下面的<a href="#重命名导出与导入">重命名导出与导入</a>部分中进行了说明。</p>
</div>
<h2 id="避免命名冲突">避免命名冲突</h2>
@@ -410,7 +410,7 @@ import { Triangle } from './modules/triangle.mjs';</pre>
<p>浏览器中可用的JavaScript模块功能的最新部分是动态模块加载。 这允许您仅在需要时动态加载模块,而不必预先加载所有模块。 这有一些明显的性能优势; 让我们继续阅读,看看它是如何工作的。</p>
-<p>这个新功能允许您将<code>import()</code>作为函数调用,将其作为参数传递给模块的路径。 它返回一个 <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">promise</a>,它用一个模块对象来实现(参见{{anch("Creating a module object")}}),让你可以访问该对象的导出,例如</p>
+<p>这个新功能允许您将<code>import()</code>作为函数调用,将其作为参数传递给模块的路径。 它返回一个 <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">promise</a>,它用一个模块对象来实现(参见<a href="#创建模块对象">创建模块对象</a>),让你可以访问该对象的导出,例如</p>
<pre class="brush: js">import('/modules/myModule.mjs')
.then((module) =&gt; {