diff options
author | t7yang <t7yang@gmail.com> | 2022-01-10 08:38:05 +0800 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2022-02-16 02:35:54 +0800 |
commit | a2617e517fe48fbd0fc283e05c82e32765a3fb12 (patch) | |
tree | 70e585d4faa5306d2f7dc4428aa72ede4b00b5c4 /files/zh-tw/web/javascript/reference/global_objects/promise/index.html | |
parent | d9e9adb5f80a819fe46349bcf6d1faec734b09cd (diff) | |
download | translated-content-a2617e517fe48fbd0fc283e05c82e32765a3fb12.tar.gz translated-content-a2617e517fe48fbd0fc283e05c82e32765a3fb12.tar.bz2 translated-content-a2617e517fe48fbd0fc283e05c82e32765a3fb12.zip |
remove font tag in zh-TW
Diffstat (limited to 'files/zh-tw/web/javascript/reference/global_objects/promise/index.html')
-rw-r--r-- | files/zh-tw/web/javascript/reference/global_objects/promise/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/zh-tw/web/javascript/reference/global_objects/promise/index.html b/files/zh-tw/web/javascript/reference/global_objects/promise/index.html index 78feec28ae..60930d642f 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/promise/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/promise/index.html @@ -94,7 +94,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Promise <h2 id="建立_Promise">建立 Promise</h2> -<p><code><font face="Open Sans, arial, x-locale-body, sans-serif">一個</font></code> <code>Promise</code> 物件透過 <code>new</code> 及其建構式建立。這個建構式接收一個叫作”執行器函式(executor function)“的引數。此函式接收兩個函式作為引數。第一個函式(<code>resolve)</code>在非同步作業成功完成時,以該作業之結果值被呼叫。第二個函式(<code>reject</code>)在作業失敗時,以失敗訊息,通常是一個 error object,被呼叫。</p> +<p>一個 <code>Promise</code> 物件透過 <code>new</code> 及其建構式建立。這個建構式接收一個叫作”執行器函式(executor function)“的引數。此函式接收兩個函式作為引數。第一個函式(<code>resolve)</code>在非同步作業成功完成時,以該作業之結果值被呼叫。第二個函式(<code>reject</code>)在作業失敗時,以失敗訊息,通常是一個 error object,被呼叫。</p> <pre class="brush: js">const myFirstPromise = new Promise((resolve, reject) => { // 執行一些非同步作業,最終呼叫: |