When the event 'eventOne' is emitted, both the above callbacks should be invoked. myEmitter.emit('eventOne');. The output in the console will be ...
確定! 回上一頁