doc: create what is asynchronous execution section
This commit is contained in:
1 parent
c4243402f7
commit
e8f69f0ea1
1 file changed
+7
@@ -14,3 +14,10 @@ categories:
|
|||||||
- JavaScript
|
- JavaScript
|
||||||
update: 2021-10-17 11:41:30
|
update: 2021-10-17 11:41:30
|
||||||
---
|
---
|
||||||
|
|
||||||
|
# 什么是异步执行?
|
||||||
|
我们编写的JS程序天生就是异步的
|
||||||
|
我们将函数作为参数传递给其他函数,以便当我们知道预期发生的事情时,可以“稍后回调”。
|
||||||
|
回调在事件驱动编程中是一个非常强大的特性。
|
||||||
|
为什么你认为在JavaScript语言中有能力将回调函数作为参数传递给其他函数,如JS中的addEventListener和setTimeout是有用的?
|
||||||
|

|
||||||
Reference in new issue
Block a user