这是
实验性技术
检查
浏览器兼容性表格
要小心谨慎在生产中使用这之前。
过时
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
getCost()
特性为
BudgetService
interface returns a
Promise
that resolves to a double indicating the worst-case background operation cost of the provided background operation.
var aPromise = BudgetService.getCost(operation);
aPromise.then(function(someDouble){ ... });
"silent-push"
.
A
Promise
that resolves to a number.
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
getCost
弃用
非标
|
Chrome 55 | Edge ≤79 | Firefox ? | IE ? | Opera 42 | Safari ? | WebView Android 55 | Chrome Android 55 | Firefox Android ? | Opera Android 42 | Safari iOS ? | Samsung Internet Android 6.0 |
完整支持
兼容性未知
实验。期望将来行为有所改变。
非标。预期跨浏览器支持较差。
弃用。不要用于新网站。
BudgetService
getBudget()
getCost()
reserve()