摘要: 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) 编辑