declarativeNetRequest.getAvailableStaticRuleCount
返回在达到全局静态规则限制之前可以启用的静态规则数量。
语法
js
let count = await browser.declarativeNetRequest.getAvailableStaticRuleCount();
参数
此函数不接受任何参数。
返回值
一个 Promise
,其会兑现一个表示在达到全局静态规则限制之前可以启用的静态规则数量的数字。如果请求失败,promise 将被拒绝并带有错误消息。
示例
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | ||||||
---|---|---|---|---|---|---|---|
getAvailableStaticRuleCount |
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.