回调函数 定义: 通过一个函数去调用另外一个函数,叫做函数的回调 例: 通过fn去调用bar函数的过程,就叫做函数的回调 //函数的回调 fuction foo(fn) { fn() } functiion baz() { console.log("baz函数执行了!") } foo(baz)