ICode9

精准搜索请尝试: 精确搜索
  • 同一个父组件,兄弟组件相互传参,调用2022-08-22 10:30:08

    组件brother2想调用组件brother1的方法,并传参 可以新建一个handler.js文件 import Vue from 'vue'; export default new Vue();  brother1组件方法: import handler from './handler'; methods: { handleEmit () { console.log('tabNum',this.tabNum)

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有