组件通信 Provide&&inject

在父组件中利用Provide 注入数据,在所有的子组件都可以拿到这个数据 可以在vue 中用来刷新页面


"en">

    "UTF-8">
    "viewport" content="width=device-width, initial-scale=1.0">
    "X-UA-Compatible" content="ie=edge">
    Provide&&Inject通信
    


    
"app">

输出:

组件通信 Provide&&inject_第1张图片

 

转载于:https://www.cnblogs.com/guangzhou11/p/11539752.html

你可能感兴趣的:(组件通信 Provide&&inject)