var endEvent = new cc.Event.EventMouse(e.getLocation(), e.bubbles);
endEvent.type = cc.Node.EventType.MOUSE_DOWN;
endEvent.simulate = true;
node.dispatchEvent(endEvent);
我在一个组件中向另一个组件派发了一个鼠标点击事件,如上所示代码。但是运行时候报错:
Simulator: 40:Error: js_cocos2dx_EventMouse_constructor : Error processing arguments
是不是我在new cc.Event.EventMouse的时候传参有问题呢??