企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## 生命周期函数(钩子) ![](https://box.kancloud.cn/6f2c97f045ba988851b02056c01c8d62_1200x3039.png) ```javascript var vm = new Vue({ el:"#app", //template:"<div>{{abc}}</div>", data:{ abc:'abcdefg', }, beforeCreate:function(){ console.log('beforeCreate'); }, created:function(){ console.log('created'); }, beforeMount:function(){ console.log(this.$el); }, mounted:function(){ console.log(this.$el); }, beforeUpdate:function(){ console.log('beforeUpdate'); }, updated:function(){ console.log('updated'); }, }) ```