What is a callback function?

前端 未结 21 2461
耶瑟儿~
耶瑟儿~ 2020-11-21 23:01

What is a callback function?

21条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-21 23:42

    look at the image :)this is how it works

    Main program calls library function (which might be system level function also) with callback function name. This callback function might be implemented in multiple way. The main program choose one callback as per requirement.

    Finally, the library function calls the callback function during execution.

提交回复
热议问题