events.Rule

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

类型

本类型的取值是对象。它包含以下属性:

id 可选

string,可选的规则 ID 用于引用这一规则。

tags 可选

stringarray,标签可用于注释规则和对规则集执行操作。

conditions

anyarray,可触发操作的条件列表。

actions

anyarray,满足条件之一时触发的操作列表。

priority 可选

integer,可选的规则优先级,默认值 100。

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Firefox for Android
Safari on iOS
Rule

Legend

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

Full support
Full support
No support
No support

备注: 该 API 基于 Chromium 的 chrome.events API。本文衍生自 Chromium 代码中的 events.json