vue對鉤子的理解

 生命週期:vue頁面生成的過程中的不一樣階段vue 生命週期鉤子:就是能夠讓你在頁面生成的不一樣階段執行動做的api,做用就是隻要頁面到了這個階段就會觸發這個對應鉤子裏的js api 1.beforeCreate --- created 2.beforeMount --- mounted 3.beforeUpdate --- updated 4.beforeDestroy --- destroy
相關文章
相關標籤/搜索