aboutsummaryrefslogtreecommitdiff
path: root/files/vi/glossary/callback_function
diff options
context:
space:
mode:
authorRyan Johnson <rjohnson@mozilla.com>2021-04-29 16:16:42 -0700
committerGitHub <noreply@github.com>2021-04-29 16:16:42 -0700
commit95aca4b4d8fa62815d4bd412fff1a364f842814a (patch)
tree5e57661720fe9058d5c7db637e764800b50f9060 /files/vi/glossary/callback_function
parentee3b1c87e3c8e72ca130943eed260ad642246581 (diff)
downloadtranslated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.gz
translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.bz2
translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.zip
remove retired locales (#699)
Diffstat (limited to 'files/vi/glossary/callback_function')
-rw-r--r--files/vi/glossary/callback_function/index.html28
1 files changed, 0 insertions, 28 deletions
diff --git a/files/vi/glossary/callback_function/index.html b/files/vi/glossary/callback_function/index.html
deleted file mode 100644
index 3692c5a6c9..0000000000
--- a/files/vi/glossary/callback_function/index.html
+++ /dev/null
@@ -1,28 +0,0 @@
----
-title: Callback function
-slug: Glossary/Callback_function
-translation_of: Glossary/Callback_function
-original_slug: Tu-dien-thuat-ngu/Callback_function
----
-<p>Hàm gọi lại là một hàm được truyền vào một hàm khác dưới dạng đối số, sau đó được gọi bên trong hàm bên ngoài để hoàn thành một số loại quy trình hoặc hành động.  Đây là một ví dụ nhanh:</p>
-
-<pre class="brush: js notranslate">function greeting(name) {
- alert('Hello ' + name);
-}
-
-function processUserInput(callback) {
- var name = prompt('Please enter your name.');
- callback(name);
-}
-
-processUserInput(greeting);</pre>
-
-<p>Ví dụ trên là một lệnh gọi lại {{glossary ("sync")}}, vì nó được thực thi ngay lập tức.  Tuy nhiên, lưu ý rằng các lệnh gọi lại thường được sử dụng để tiếp tục thực thi mã sau khi hoạt động {{glossary ("asynchronous")}} hoàn thành - chúng được gọi là lệnh gọi lại không đồng bộ.  Một ví dụ điển hình là các hàm gọi lại được thực thi bên trong một khối .then () được xâu chuỗi vào cuối một lời hứa sau khi lời hứa đó hoàn thành hoặc bị từ chối.  Cấu trúc này được sử dụng trong nhiều API web hiện đại, chẳng hạn như fetch ().</p>
-
-<h2 id="Learn_more"><strong>Learn more</strong></h2>
-
-<h3 id="General_knowledge"><strong>General knowledge</strong></h3>
-
-<ul>
- <li>{{interwiki("wikipedia", "Callback_(computer_programming)", "Callback")}} on Wikipedia</li>
-</ul>