& lt; Script>
Const open=new Vue ({
El: "div",
Data: {
The message: "hello vue,"
Mover: [" 12 ", "34", "56", "45"],
}
})
</script>
If I want to use the value of the message;
Can directly open the message
But don't open in javascript. Data. Any message
And vue if open. The data. The message is not the value of the message,
So I want to ask is why?
CodePudding user response:
Do these vue background processingVue usage in this way, it is not necessary to know why did he do this,
Not accustomed to you can use vue3, this is not this. The use of the message,
CodePudding user response:
Individuals understand the ha, the feeling is not very rigorousVue not MVVM structure, direct docking view layer, data layer don't have to call the data among, v - directly after the for {{variable names. The message}} to pull the data to the page
CodePudding user response:
This is Vue help you do, make you more convenient to use,Specific can see the source code
https://ustbhuangyi.github.io/vue-analysis/v2/prepare/