简化dom操作,类似入下,使用vue 可以省略
基于MVVM思想,实现数据双向绑定
插值表达式(写错了)
v-bind:
设置href css样式
v-on 绑定事件 绑定操作的内容写在show方法中
v-if v-show(渲染效果不一样)
if 条件不满足 html不会有
show条件不满足 加上style=“display:none”;
v-for
把div重复了三次 (谁绑定,谁循环)
created
mounted
Element

简化dom操作,类似入下,使用vue 可以省略
基于MVVM思想,实现数据双向绑定
插值表达式(写错了)
v-bind:
设置href css样式
v-on 绑定事件 绑定操作的内容写在show方法中
v-if v-show(渲染效果不一样)
if 条件不满足 html不会有
show条件不满足 加上style=“display:none”;
v-for
把div重复了三次 (谁绑定,谁循环)
created
mounted
Element