<div id="app">
<p id="age">me:{{me()}}
</div>
new Vue({
el:"-sharpapp",
data:{
y:454,
},
methods:{
me(a){
console.log("methods is run",this.y)
return this.y;
}
},
beforeUpdate(){
console.log("dom:",document.getElementById("age").innerHTML,this.y)
},
updated(){
console.log("dom:",document.getElementById("age").innerHTML,this.y)
}
}
what is the order of execution?