events

由分发事件的 API 所使用的常见类型。

类型

events.Rule

用于处理事件的声明性规则的描述。

events.Event

允许对浏览器事件添加和移除监听器的对象。

events.UrlFilter

用于过滤 URL 的各种标准。如果其中的某一标准与 URL 匹配,则整个过滤器与之匹配的。

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Firefox for Android
Safari on iOS
events
Event
Event.addListener
Event.addRules
Event.getRules
Event.hasListener
Event.hasListeners
Event.removeListener
Event.removeRules
Rule
UrlFilter

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support