摘要: 定义一个公共的bus.js import Vue from 'vue'; export const Bus = new Vue(); 在页面引A import {Bus} from '../../bus.js'; Bus.$emit('one') //触发 在页面B import {Bus} fro 阅读全文
posted @ 2021-08-12 09:18 小十六哇 阅读(187) 评论(0) 推荐(0) 编辑