vue学习笔记-黑马教程第四天
作者:
Neyo_凉 | 来源:发表于
2019-04-08 10:44 被阅读0次

组件的创建方式第一种

组件的创建方式第一种--简写

第二种创建组件的方式

第三种创建组件的方式 独立模版定义 更方便做复杂的代码模版

组件---定义内部私有组件

组件---组件中的data使用方法

组件- 切换 if else 缺陷只能两个切换

组件 component 切换动画组件使用

父组件传数据到子组件, 子组件中data和props的区别

组件传值,子组件通过调用方法向父组件传值

实战,评论功能制作 步骤

评论功能实例--模版

评论功能实例--脚本
<cmt-box @func="loadComments"></cmt-box> ///
this.$emit("func")

使用ref 获取dom元素和组件引用

路由的概念
本文标题:vue学习笔记-黑马教程第四天
本文链接:https://www.haomeiwen.com/subject/niesiqtx.html
网友评论