【vue.js】生命周期——beforeCreate、created、beforeMount、mounted、beforeUpdate、updated、beforeDesotry、destoryed
Document{{name}}letvm=newVue({el:"#app",data:{name:"liuting",},beforeCreate(){console.log("创建前:");console.log(this.$el);console.log(this.$data);},created(){console.log("创建完成:");console.log(this.$el);c