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

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