标签:new data created this vue for span update style
<script> let app = new Vue({ el:‘#app‘, data:{ name:‘123‘ }, beforeCreate(){ //没有任何数据 创造前 }, created(){ //创造后 有了数据 console.log(this) console.log(this.$data); }, beforeMount(){ //挂载前
console.log(this.$el);
console.log(this.$data); }, mounted(){ //挂载后 }, beforeUpdata(){ //修改前 }, updated(){ //修改后 }, beforeDestroy(){ //销毁前 }, destroyed(){ // 销毁后 } }) </script>
<div id="app"> <div>{{name}}</div> </div>
标签:new data created this vue for span update style
原文地址:https://www.cnblogs.com/l8l8/p/9151982.html