var vm = new Vue({
el: "-sharpexample",
data: {
message: "123"
}
})
vm.message = "new message"
console.log(vm.$el.textContent)
Vue.nextTick(function () {
console.log(vm.$el.textContent)
})
read some Vue.nextTick instructions on the Internet, saying that the operation will be carried out during the next task cycle (that is, after the DOM update is completed).
vm.$el vmChrometextContent
:
:
Why is this?