text: (window.webpackJsonp=window.webpackJsonp||[]).push([[27],{339:function(e,t,v){"use strict";v.r(t);var _=v(1),a=Object(_.a)({},function(){this.$createElement;this._self._c;return this._m(0)},[function(){var e=this,t=e.$createElement,v=e._self._c||t;return v("div",{staticClass:"content"},[v("h4",{attrs:{id:"钩子函数"}},[v("a",{staticClass:"header-anchor",attrs:{href:"#钩子函数","aria-hidden":"true"}},[e._v("#")]),e._v(" 钩子函数")]),e._v(" "),v("p",[e._v("vue中有11钩子函数,分别是")]),e._v(" "),v("p",[v("code",[e._v("beforeCreate")]),e._v("    ----   组件开始创建，并且初始化data数据")]),e._v(" "),v("p",[v("code",[e._v("created")]),e._v("    ----    组件实例创建完成，但是$el没有获取到，但是完成了data数据的初始化")]),e._v(" "),v("p",[v("code",[e._v("beforeMount")]),e._v("     ----   el和data开始挂载")]),e._v(" "),v("p",[v("code",[e._v("mounted")]),e._v("    ----   $el元素已经得到，并且组件已经挂载完成,DOM已经渲染完成")]),e._v(" "),v("p",[v("code",[e._v("beforeUpdate")]),e._v("    ----   组件更新之前")]),e._v(" "),v("p",[v("code",[e._v("Updated")]),e._v("    ----   组件更新之后")]),e._v(" "),v("p",[v("code",[e._v("beforeDestory")]),e._v("    ----   组件销毁之前")]),e._v(" "),v("p",[v("code",[e._v("destroyed")]),e._v("    ----   组件销毁之后")]),e._v(" "),v("p",[v("code",[e._v("activated")]),e._v("    ----   用与keep-alive激活时使用")]),e._v(" "),v("p",[v("code",[e._v("deactivated")]),e._v("    ----   用与keep-alive移除时使用")]),e._v(" "),v("p",[v("code",[e._v("errorCaptured")]),e._v("    ----   待解决")])])}],!1,null,null,null);t.default=a.exports}}]);