---
title: "Discussion on \"vue知识点\" | Hashnode"
description: "Discussion on \"vue知识点\". 组件通信\n\n父子组件间通讯：props和emit、emit、emit、parent、refs和refs和refs和children、v-model\n兄弟组件间通讯：事件总线、Vuex、localStorage\n隔代组件间通讯：provide和inject\n无相关组件间通讯：事件总线、Vuex、localStorage\n\nVue.directive(指令名, 配置对象)\n或\nVue.directive(指令名, 回调函数)\n\n\nVue.directive('fbind', {\n    // 指令与..."
url: "https://hashnode.com/posts/vue/629492ca0989e6b52feb3077"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [vue知识点](https://zmblog.hashnode.dev/vue?utm_source=hashnode&utm_medium=feed)

组件通信 父子组件间通讯：props和emit、emit、emit、parent、refs和refs和refs和children、v-model 兄弟组件间通讯：事件总线、Vuex、localStorage 隔代组件间通讯：provide和inject 无相关组件间通讯：事件总线、Vuex、localStorage Vue.directive(指令名, 配置对象) 或 Vue.directive(指令名, 回调函数) Vue.directive('fbind', { // 指令与...

May 30, 2022 · 1 min read · zmblog.hashnode.dev  
Updated Jul 1, 2022  
Read the article

-   [#vscode](https://hashnode.com/tag/vscode)

## Written by

[明](https://hashnode.com/@zm144)

@zm144

  
[View profile](https://hashnode.com/@zm144)

learn

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
