会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
灰姑娘的冰眸
博客园
首页
新随笔
联系
管理
订阅
2018年6月14日
vue 父子组件通信props/emit
摘要: props 1.父组件传递数据给子组件 父组件: <parent> <child :childMsg="msg"></child>//这里必须要用 - 代替驼峰 </parent> data(){ return { msg: [1,2,3] }; } 子组件通过props来接收数据: 方式1: pr
阅读全文
posted @ 2018-06-14 13:51 灰姑娘的冰眸
阅读(598)
评论(0)
推荐(0)
编辑
公告