全栈开发

vue

2017-08-02  本文已影响10人  月光在心中

全局组件注册
局部组件注册
父向子传递值
子向父传递值
动态组件
slot内容分发
$refs & ref
data数据声明

slot插槽(内容分发)

v-for
:key
v-model
v-class
v-style
v-bind 、 :
v-fi
v-else
v-else-if
v-show
v-html
v-once
v-on:click @click

el
data
methods
computed
watch
directives
filters
created
mounted
beforeUpdate
updated
destroyed
components

vm.$mount("sel")
vm.$watch("attr",function(){});
vm.$el
vm.$on(eventName,function(){});
vm.$emit(eventName[,params]);

上一篇 下一篇

猜你喜欢

热点阅读