用this.$broadcast 和this.$dispatch 可以达到父子之间相互调用函数的功能不过根据最新的vue版本 这两种方法好像废除了 印象中好像改为 var bus = new Vue() bus.$on bus.$off bus.$emit