local eventDispatcher = self:getEventDispatcher()
这句话中self总是提示错误说:attempt to index local 'self'(a nil value)