$on).toHaveBeenCalledTimes(1); 该组件如下所示: import {EventBus} from 'eventbus' data(){return {}}, EventBus.= new Vue(); };
//Vue.prototype.EventBus = new Vue(); <-- I tried this also
我正尝试在Android中使用Guava eventbus,但我订阅的事件似乎不起作用……我做错了什么?这是我的活动:import com.google.common.eventbus.Subscribeeventbus = new EventBus();
/** Called when the activity