vue笔记总结01

1.插值表达式:v-cloak、v-text、v-html、v-bind(缩写:)、v-on(缩写@)、v-for、v-model、v-show、v-if

2.事件修饰符:.stop、.prevent、.capture、.self、.once

3.el 指定要控制的区域
data是个对象,指定了控制的区域内要用到的数据
methods虽然带个s后缀,但是是个对象,这里定义方法

4.在VM实例中,如果要访问data上的数据或者访问methods中的方法,必须带this

5.在v-for中key属性值接受string/number

6.v-model只能运用于表单元素

7.在vue中绑定样式两种方式 v-bind:class、 v-bind:style

猜你喜欢

转载自blog.csdn.net/qq_36781179/article/details/82796905