vue life cycle

1, said device life cycle, always felt familiar and unfamiliar, until you see a face questions, asked his son to perform the order life cycle components, I rub, I did not pay much attention to, ah, I do not know.

2, online search, I say that a bit like a form of onion rings, from outside to inside, to the outside, because, like a box wrapped in another box, to go through this box, certainly outside = "internal = "outside the

3, life cycle and destory beforeDestory two hooks, not very clear under what circumstances will perform,

  1, for example A, the introduction of B, C two components, when switching B, C is determined by the v-if, then execution will destory

  2, when switching route A => B, inside destory A case will be performed, of course, if the keep-alive settings, then it should be noted that under

 

Guess you like

Origin www.cnblogs.com/ysla/p/11530874.html