diff --git a/source/_posts/异步JavaScript.md b/source/_posts/异步JavaScript.md index 2d384d0..cb56aeb 100644 --- a/source/_posts/异步JavaScript.md +++ b/source/_posts/异步JavaScript.md @@ -85,4 +85,11 @@ verifyPizza(); eatPizza(); // twiddle thumbs payForPizza(); -``` \ No newline at end of file +``` + +# 回调 +回调在事件驱动编程中是一个非常强大的特性。 +- 比例:在电话答录机上留下你的电话号码 + +为什么你认为在JavaScript语言中有能力将回调函数作为参数传递给其他函数,如JS中的addEventListener和setTimeout是有用的? +- 使异步执行! \ No newline at end of file