search

Home  >  Q&A  >  body text

What are JavaScript hook functions?

What is the JavaScript hook function?

仅有的幸福仅有的幸福2823 days ago1013

reply all(3)I'll reply

  • 滿天的星座

    滿天的星座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.

    reply
    0
  • 女神的闺蜜爱上我

    女神的闺蜜爱上我2017-06-12 09:32:25

    I understand it as a callback function.

    reply
    0
  • 欧阳克

    欧阳克2017-06-12 09:32:25

    When you go out, turn left to Baidu, turn right to bing, go straight to Google

    reply
    0
  • Cancelreply