aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/promise/then/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/promise/then/index.html')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/promise/then/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/promise/then/index.html b/files/zh-cn/web/javascript/reference/global_objects/promise/then/index.html
index a4180c8e14..d5193c8498 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/promise/then/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/promise/then/index.html
@@ -101,7 +101,7 @@ p1.then(value => {
<h3 id="链式调用">链式调用</h3>
-<p><font face="Open Sans, sans-serif"><code>then</code> 方法返回</font>一个 <code>Promise</code> 对象,其允许方法链。</p>
+<p><code>then</code> 方法返回一个 <code>Promise</code> 对象,其允许方法链。</p>
<p>你可以传递一个匿名函数给 <code>then</code>,并且,如果它返回一个 <code>Promise</code>,一个等价的 <code>Promise</code> 将暴露给后续的方法链。下面的代码片段使用 <code>setTimout</code> 函数来模拟异步代码操作。</p>