Global definition directive:
The directive method of a Vue object takes two arguments, the name of the directive and the function. Component built-in directives: DirectivesCopy the code
Hook functions:
Inserted (a node is inserted) 3, Update (a related update within the component)Copy the code
Hook function arguments:
El, bindingCopy the code