Notification.actions
Notification
接口的只读属性actions
返回使用Notification()
构造函数创建通知时使用actions选项设置的NotificationAction
(en-US)对象列表。这是用户可以在通知上下文中选择立即执行的应用定义的操作列表。
Note:
此特性在 Web Worker 中可用。语法
var actions[] = Notification.actions;
值
NotificationAction
(en-US)对象的只读数组。用户在通知中选择每项的单一的功能。
规范
规范 | 状态 | 说明 |
---|---|---|
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! (en-US)
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 相关
{{Page("/en-US/docs/Web/API/Notifications_API", "Firefox OS notes")}}
Chrome 相关
{{Page("/en-US/docs/Web/API/Notifications_API", "Chrome notes")}}
Safari 相关
{{Page("/en-US/docs/Web/API/Notifications_API", "Safari notes")}}