fix:回调函数
This commit is contained in:
@@ -209,6 +209,10 @@ return的作用是结束方法。
|
||||
```javascript
|
||||
fn(test); //回调test这个函数
|
||||
|
||||
function fn(a){
|
||||
a();
|
||||
}
|
||||
|
||||
function test() {
|
||||
console.log("我是被回调的函数")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user