We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

Notification.actions

这篇翻译不完整。请帮忙从英语翻译这篇文章

Notification接口的actions只读属性返回使用Notification()构造函数创建通知时使用actions选项设置的NotificationAction对象列表。这是用户可以在通知上下文中选择立即执行的应用定义的操作列表。

Note: 此特性在 Web Worker 中可用。

语法

var actions[] = Notification.actions;

一个只读的NotificationAction对象数组。每一个对象描述用户可以在一个通知中选择的单个操作。

规范

规范 状态 说明
Notifications API
actions
Living Standard Living standard

浏览器兼容性

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 53 ? ? 40 ?
Available in workers 53 ? ? 40 ?
Feature Android Webview Chrome for Android Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile
Basic support

未实现

53 ? ? ? 40 ?
Available in workers 未实现 53 ? ? ? 40 ?

Firefox OS 相关

Chrome 相关

Safari 相关

更多

文档标签和贡献者

此页面的贡献者: oopsguy
最后编辑者: oopsguy,