fix:回调函数

This commit is contained in:
qianguyihao
2018-07-14 11:18:19 +08:00
parent ebf23ff861
commit 6b45420e38
3 changed files with 14 additions and 0 deletions

View File

@@ -209,6 +209,10 @@ return的作用是结束方法。
```javascript
fn(test); //回调test这个函数
function fn(a){
a();
}
function test() {
console.log("我是被回调的函数")
}