aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/promise/then
diff options
context:
space:
mode:
authort7yang <t7yang@gmail.com>2022-01-10 08:38:06 +0800
committerIrvin <irvinfly@gmail.com>2022-02-16 02:35:54 +0800
commitea514a38735125a2b5468300311ea8b2389c8863 (patch)
tree1afc6c2ff3ee3bc5efdfbba3841e2ef24f0c9485 /files/zh-cn/web/javascript/reference/global_objects/promise/then
parenta2960295605a27e084541fc2f93068dd3cad15ba (diff)
downloadtranslated-content-ea514a38735125a2b5468300311ea8b2389c8863.tar.gz
translated-content-ea514a38735125a2b5468300311ea8b2389c8863.tar.bz2
translated-content-ea514a38735125a2b5468300311ea8b2389c8863.zip
remove hidden class for zh-CN
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/promise/then')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/promise/then/index.html2
1 files changed, 0 insertions, 2 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 d5193c8498..6717a21da3 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
@@ -15,8 +15,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Promise/then
<div>{{EmbedInteractiveExample("pages/js/promise-then.html")}}</div>
-<p class="hidden">The source for this interactive demo is stored in a GitHub repository. If you'd like to contribute to the interactive demo project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</p>
-
<div class="note">
<p>注意:如果忽略针对某个状态的回调函数参数,或者提供非函数 (nonfunction) 参数,那么 <code>then</code> 方法将会丢失关于该状态的回调函数信息,但是并不会产生错误。如果调用 <code>then</code> 的 <code>Promise</code> 的状态(fulfillment 或 rejection)发生改变,但是 <code>then</code> 中并没有关于这种状态的回调函数,那么 <code>then</code> 将创建一个没有经过回调函数处理的新 <code>Promise</code> 对象,这个新 <code>Promise</code> 只是简单地接受调用这个 <code>then</code> 的原 <code>Promise</code> 的终态作为它的终态。</p>
</div>