滿天的星座2017-06-12 09:32:25
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.
欧阳克2017-06-12 09:32:25
When you go out, turn left to Baidu, turn right to bing, go straight to Google