The hook was originally translated from a foreign language. HOOKS, the official explanation is that the hook is the messaging mechanism of the Windows platform
Colleague programmer said: Hook Main Event trigger is to monitor, and the memory of the operation of two applications.
To figure out what the hook is for? First of all, we need to understand what real life hooks are for.
In real life, the main application of hooks is to use more steelyard. Is the following a tray to put things, and then hooked by hooks, if the weight of the load increased, it will cause the hook changes, or hooks can sense.
This is the principle of hooks, hooks and weights linked together, but it is not like with 520 glue together, can only bind a thing, but can clearly distinguish with the hook itself different weight changes, so you can monitor
Changes in weight. Then in the program development, the weight is the user submitted data, or data read from the database, and then passed to the hook, the hook sensor, the back of the steelyard weight scales will move backwards, then the performance of the program development,
Is that the style passed to the browser has changed.
The understanding of Hooks