vue

作者: 月光在心中 | 来源:发表于2017-08-02 11:59 被阅读10次

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

slot插槽(内容分发)

  • 具名插槽
    含有name属性的slot标签,<slot name="a"></slot>
  • 匿名插槽
    不含的 <slot></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]);

相关文章

网友评论

    本文标题:vue

    本文链接:https://www.haomeiwen.com/subject/yfwjlxtx.html