Class: Event

events~ Event


new Event(type)

精简版实现的 W3C DOM Level 2 Event interface。 参考 https://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-interface. 精简的事件类里只提供`type`和`target`属性, `stopPropagation`和`preventDefault`方法。 它是所有事件的基类,和module:events.Target配合使用
Parameters:
Name Type Description
type String 事件类型

Members


propagationStopped :boolean

是否停止传递事件消息
Type:
  • boolean

type :String

事件类型
Type:
  • String

target :Object

发出事件的对象
Type:
  • Object

Methods


preventDefault()

停止传递事件消息

stopPropagation()

停止传递事件消息