我想通过父组件中的this.$emit的方法来触发子组件中的this.$on,应该要怎么做?
我做过的尝试:
使用vue2.x
#parent {        width: 200px;        height: 200px;        background-color: #eee;
    }    
.child {    width: 100px;    height: 100px;    background-color: red;
}<div id="parent" @click="test">
    <p>{{ total }}</p>
    <child v-on:increment="test"></child></div>相关分类