aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/promise/index.html
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/index.html
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/index.html')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/promise/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/promise/index.html b/files/zh-cn/web/javascript/reference/global_objects/promise/index.html
index 418851f99a..5a5fd2d613 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/promise/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/promise/index.html
@@ -196,7 +196,7 @@ myFirstPromise.then(function(successMessage){
<h3 id="高级示例">高级示例</h3>
-<pre class="brush: html hidden">&lt;button id="btn"&gt;Make a promise!&lt;/button&gt;
+<pre class="brush: html">&lt;button id="btn"&gt;Make a promise!&lt;/button&gt;
&lt;div id="log"&gt;&lt;/div&gt;
</pre>
@@ -247,7 +247,7 @@ function testPromise() {
') Promise made (&lt;small&gt;同步代码结束&lt;/small&gt;)&lt;br/&gt;');
}</pre>
-<pre class="brush:js hidden">if ("Promise" in window) {
+<pre class="brush:js">if ("Promise" in window) {
let btn = document.getElementById("btn");
btn.addEventListener("click",testPromise);
} else {