如图上面的菜单我放在了一个组件里面,如何做到点击字组件里的a链接,触发父组件的重新加载程序?
ringa_lee
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...
Look at this official picture! Deliver
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...
Look at this official picture! Deliver

through custom events