search

Home  >  Q&A  >  body text

node.js - vue 子组件的菜单 如何与 父组件 通信?

如图上面的菜单我放在了一个组件里面,如何做到点击字组件里的a链接,触发父组件的重新加载程序?

ringa_leeringa_lee2784 days ago618

reply all(2)I'll reply

  • 大家讲道理

    大家讲道理2017-04-17 15:09:08

    The child component notifies the parent component, generally using events, that is, by dispatching an event; then the parent component will receive the event.
    The specific code can be found here:
    https://segmentfault.com/a/11...

    reply
    0
  • PHPz

    PHPz2017-04-17 15:09:08

    Look at this official picture! Deliver

    through custom events

    reply
    0
  • Cancelreply