测试基础 VUE 传递数据

tongyuruo · 2020年03月19日 · 最后由 陈恒捷 回复于 2020年12月04日 · 1137 次阅读

1、 父亲->子:props
父亲以标签传递给儿子
儿子用 props 接收数据:
props: {
title: String,
likes: Number,
isPublished: Boolean,
commentIds: Array,
author: Object,
callback: Function,
contactsPromise: Promise // or any other constructor
}

2、子-> 夫 emit Event

共收到 1 条回复 时间 点赞

这个片段看得有点一头雾水,如果是个人笔记可以放在记事本里面?

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册