In the process of learning vue.js, hook functions are used when developing components, but some of them are not very clear
If both component A and component B perform operations in the created hook function, I think I’m asking whether the created hooks in component A and component B are independent of each other, or whether they all use the same certified hook instantiated in the top-level new vue(). I don’t know if I expressed it clearly...
淡淡烟草味2017-05-16 13:13:47
Vue components are independent of each other. If you understand the life cycle of a Vue instance, it will be clear at a glance, or you can write a Demo and print the results. In addition, you can take a look at the usage of Mixin