diff options
author | t7yang <t7yang@gmail.com> | 2022-01-10 08:38:07 +0800 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2022-02-16 02:35:54 +0800 |
commit | c40612041809fe289aba58aefa170bbe784aba1f (patch) | |
tree | 8ca89b071d04afcf7abd6d9a04d0765a041d9c8a /files/zh-cn/web/javascript/reference/global_objects/generator/next | |
parent | 12a899ab8540bc84f56a0dc6491be80a48499d49 (diff) | |
download | translated-content-c40612041809fe289aba58aefa170bbe784aba1f.tar.gz translated-content-c40612041809fe289aba58aefa170bbe784aba1f.tar.bz2 translated-content-c40612041809fe289aba58aefa170bbe784aba1f.zip |
remove name attribute for zh-CN
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/generator/next')
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/generator/next/index.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/generator/next/index.html b/files/zh-cn/web/javascript/reference/global_objects/generator/next/index.html index e135b75afc..63d7f9a169 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/generator/next/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/generator/next/index.html @@ -15,11 +15,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Generator/next <p><code><strong>next</strong></code><strong><code>()</code></strong> 方法返回一个包含属性 <code>done</code> 和 <code>value</code> 的对象。该方法也可以通过接受一个参数用以向生成器传值。</p> -<h2 id="Syntax" name="Syntax">语法</h2> +<h2 id="Syntax">语法</h2> <pre class="syntaxbox"><code><var>gen</var>.next(value)</code></pre> -<h3 id="Parameters" name="Parameters">参数</h3> +<h3 id="Parameters">参数</h3> <dl> <dt><code>value</code></dt> @@ -43,7 +43,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Generator/next <h2 id="示例">示例</h2> -<h3 id="Example_Using_test" name="Example:_Using_test">使用 <code>next()方法</code></h3> +<h3 id="Example_Using_test">使用 <code>next()方法</code></h3> <p>下面的例子展示了一个简单的生成器, 以及调用 <code>next</code> 后方法的返回值:</p> @@ -79,7 +79,7 @@ g.next(2); // "{ value: null, done: false }"</code> </pre> -<h2 id="Specifications" name="Specifications">规范</h2> +<h2 id="Specifications">规范</h2> <table class="standard-table"> <tbody> @@ -101,7 +101,7 @@ g.next(2); </tbody> </table> -<h2 id="Browser_compatibility" name="Browser_compatibility">浏览器兼容性</h2> +<h2 id="Browser_compatibility">浏览器兼容性</h2> <div>{{CompatibilityTable}}</div> @@ -157,7 +157,7 @@ g.next(2); </div> </div> -<h2 id="See_also" name="See_also">相关链接</h2> +<h2 id="See_also">相关链接</h2> <ul> <li><code><a href="/en-US/docs/Web/JavaScript/Reference/Statements/function*">function*</a></code></li> |