aboutsummaryrefslogtreecommitdiff
path: root/files/zh-tw/glossary/synchronous/index.html
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:43:23 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:43:23 -0500
commit218934fa2ed1c702a6d3923d2aa2cc6b43c48684 (patch)
treea9ef8ac1e1b8fe4207b6d64d3841bfb8990b6fd0 /files/zh-tw/glossary/synchronous/index.html
parent074785cea106179cb3305637055ab0a009ca74f2 (diff)
downloadtranslated-content-218934fa2ed1c702a6d3923d2aa2cc6b43c48684.tar.gz
translated-content-218934fa2ed1c702a6d3923d2aa2cc6b43c48684.tar.bz2
translated-content-218934fa2ed1c702a6d3923d2aa2cc6b43c48684.zip
initial commit
Diffstat (limited to 'files/zh-tw/glossary/synchronous/index.html')
-rw-r--r--files/zh-tw/glossary/synchronous/index.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/files/zh-tw/glossary/synchronous/index.html b/files/zh-tw/glossary/synchronous/index.html
new file mode 100644
index 0000000000..db33bd48e1
--- /dev/null
+++ b/files/zh-tw/glossary/synchronous/index.html
@@ -0,0 +1,19 @@
+---
+title: 同步
+slug: Glossary/Synchronous
+translation_of: Glossary/Synchronous
+---
+<p><em>同步</em>(Synchronous)是指各方在接收(必要的話還會執行與回覆)訊息時,立刻(或盡可能接近立刻)執行的即時通訊。</p>
+
+<p>以人類通訊來比喻就是電話:在電話通訊時,你通常會立刻回覆對方的訊息。</p>
+
+<p>很多程式指令都是同步的:例如在計算時,環境會立刻回傳結果,除非你撰寫程式時不讓它這麼做。</p>
+
+<h2 id="深入理解">深入理解</h2>
+
+<h3 id="技術參考">技術參考</h3>
+
+<ul>
+ <li>{{glossary("Asynchronous","非同步")}}</li>
+ <li>使用 <a href="/zh-TW//docs/Web/API/XMLHttpRequest">XMLHttpRequest()</a> {{glossary("API")}} 完成 <a href="/zh-TW/docs/Web/API/XMLHttpRequest/Synchronous_and_Asynchronous_Requests">同步與非同步請求</a></li>
+</ul>