當前位置:編程學習大全網 - 網站源碼 - vue 父子組件生命周期函數執行順序

vue 父子組件生命周期函數執行順序

父beforeCreate -> 父created -> 父beforeMount -> 子beforeCreate -> 子created -> 子beforeMount -> 子mounted->父mounted

父beforeUpdate -> 子beforeUpdate -> 子updated -> 父updated

父beforeDestroy -> 子beforeDestroy -> 子destroyed -> 父destroyed

case1: 當子組件渲染的數據 是從父組件中調用接口獲得數據,然後通過父子組件傳值的方式傳遞到子組件渲染頁面 頁面渲染可能會出現問題;

  • 上一篇:繞過卡巴DUMP LSASS內存
  • 下一篇:如何在MinGW下編譯LAME
  • copyright 2024編程學習大全網