会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
强仔
博客园
新随笔
管理
2022年5月15日
vue框架值props
摘要: 定义: 数组方式: props:["name","blogs","xxx"] 对象方式props:{ blogs:{ default:0(赋初值) type:Array, required:true(必须存在) } } 使用: 1.可以直接渲染 {{props定义的值}}
阅读全文
posted @ 2022-05-15 23:30 强仔必胜
阅读(22)
评论(0)
推荐(0)
编辑
vue系列之组件间数据共享
摘要: 父子共享 子组件定义props,父组件赋值 子父共享 子组件emit 兄弟共享(eventBus)
阅读全文
posted @ 2022-05-15 23:28 强仔必胜
阅读(26)
评论(0)
推荐(0)
编辑