events.Rule
处理事件的声明性规则的描述。
类型
本类型的取值是对象。它包含以下属性:
id
可选-
string
,可选的规则 ID 用于引用这一规则。 -
string
的array
,标签可用于注释规则和对规则集执行操作。 conditions
-
any
的array
,可触发操作的条件列表。 actions
-
any
的array
,满足条件之一时触发的操作列表。 priority
可选-
integer
,可选的规则优先级,默认值 100。
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | ||||||
---|---|---|---|---|---|---|---|
Rule |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
备注:
该 API 基于 Chromium 的 chrome.events
API。本文衍生自 Chromium 代码中的 events.json
。