If you know React and Vue, there are life cycle functions in them, which are functions that are executed in different periods of a page. Those are hook functions, which seem to be called Hooks functions in English. What function is executed when a page is loaded, and what function is executed when it is destroyed. Hook function is the callback function mentioned above. You want to call a certain function after a piece of code is executed. In short, it is a callback function.
If you know
React
andVue
, there are life cycle functions in them, which are functions that are executed in different periods of a page. Those are hook functions, which seem to be called Hooks functions in English. What function is executed when a page is loaded, and what function is executed when it is destroyed.Hook function is the callback function mentioned above. You want to call a certain function after a piece of code is executed. In short, it is a callback function.
I understand it as a callback function.
When you go out, turn left to Baidu, turn right to bing, go straight to Google