会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
a56爆大奖在线娱乐的博客
a56爆大奖在线娱乐的园子
账号设置
简洁模式
...
退出登录
注册
登录
湘江若水
博客园
首页
新随笔
联系
订阅
管理
2019年3月11日
Vue 中Bus使用
摘要: 使用:兄弟组件之间传值; 安装: npm install vue-bus 在main.js 中引入vuebus: 在组件中使用 触发事件: this.$bus.emit("onslected",params) 应对事件: mounted:function(){ this.$bus.on("onsle
阅读全文
posted @ 2019-03-11 20:15 若水如引
阅读(12407)
评论(2)
推荐(0)
编辑
公告