vue的基本用法
vue的模板语法
特性
1.vue 的基本步骤
需要提供标签
vue语法做功能
vue提供数据
var vm=new Vue({
el:'#app'
data:{
msg:"Hello Vue
}
})
el 元素挂载位置
data数据模型
插值表达式
将数据填充
插值表达式做基础的计算
vue运行原理
叫编译过程
模板语法
差值
指令
事件绑定
样式绑定
分支循环结构
[v-cloak]{display:none} Solve the flicker
Principle: First hide the content through the style and then replace it in the memory. After the replacement, the final result is