我们的志愿者还没有将这篇文章翻译为 中文 (简体)。加入我们帮助完成翻译!
您也可以阅读此文章的English (US)版。
The image read-only property of the Notification interface contains the URL of an image to be displayed as part of the notification, as specified in the image option of the Notification() constructor.
Note: This feature is available in Web Workers.
Syntax
var image = Notification.image;
Value
A USVString.
Specifications
| Specification | Status | Comment |
|---|---|---|
| Notifications API The definition of 'image' in that specification. |
Living Standard | Living standard |
Browser compatibility
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic support | 55.0 | 4.0 moz (see notes) 22 |
No support | ? | No support |
| Available in workers | 55.0 | 41.0 (41.0) | ? | ? | ? |
| Feature | Android Webview | Chrome for Android | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|---|---|
| Basic support | No support | 55.0 | 4.0 moz (see notes) 22 |
1.0.1 moz (see notes) 1.2 |
No support | ? | No support |
| Available in workers | No support | 55.0 | 41.0 (41.0) | ? | ? | ? | ? |