node.js - vue 子组件的菜单 如何与 父组件 通信?
ringa_lee
ringa_lee 2017-04-17 15:07:08
0
2
665

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

ringa_lee
ringa_lee

ringa_lee

reply all(2)
大家讲道理

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...

PHPzhong

Look at this official picture! Deliver

through custom events
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template