diff options
Diffstat (limited to 'files/zh-cn/web/javascript/reference/operators/await/index.html')
-rw-r--r-- | files/zh-cn/web/javascript/reference/operators/await/index.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/files/zh-cn/web/javascript/reference/operators/await/index.html b/files/zh-cn/web/javascript/reference/operators/await/index.html index fe95e7ddf2..0183f4d7ae 100644 --- a/files/zh-cn/web/javascript/reference/operators/await/index.html +++ b/files/zh-cn/web/javascript/reference/operators/await/index.html @@ -15,12 +15,12 @@ translation_of: Web/JavaScript/Reference/Operators/await <h2 id="语法">语法</h2> -<pre class="syntaxbox notranslate">[<font face="Consolas, Liberation Mono, Courier, monospace">返回值</font>] = await <font face="Consolas, Liberation Mono, Courier, monospace">表达式</font>;</pre> +<pre class="syntaxbox notranslate">[返回值] = await 表达式;</pre> <dl> - <dt><font face="Consolas, Liberation Mono, Courier, monospace">表达式</font></dt> + <dt>表达式</dt> <dd>一个 {{jsxref("Promise")}} 对象或者任何要等待的值。</dd> - <dt><font face="Consolas, Liberation Mono, Courier, monospace">返回值</font></dt> + <dt>返回值</dt> <dd> <p>返回 Promise 对象的处理结果。如果等待的不是 Promise 对象,则返回该值本身。</p> </dd> |