blob: 9a89fd402b02f075513de0facee269a1978de8f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
---
title: Notification.image
slug: Web/API/notification/image
translation_of: Web/API/Notification/image
---
<p>{{APIRef("Web Notifications")}}{{AvailableInWorkers}}{{securecontext_header}}</p>
<p><span class="seoSummary"> <code>image</code> 是{{domxref("Notification")}} 接口的只读属性,包含了需要显示在通知信息里的图片的URL,</span>可通过{{domxref("Notification.Notification","Notification()")}}构造函数的 <code>image</code> 选项指定。</p>
<h2 id="Syntax" name="Syntax">语法</h2>
<pre class="syntaxbox">var image = Notification.image;
</pre>
<h3 id="Return_Value" name="Return_Value">值</h3>
<p>{{domxref("USVString")}}。</p>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>
<tr>
<th scope="col">规范</th>
<th scope="col">状态</th>
<th scope="col">备注</th>
</tr>
<tr>
<td>{{SpecName('Web Notifications','#image-resource','image')}}</td>
<td>{{Spec2('Web Notifications')}}</td>
<td>Living standard</td>
</tr>
</tbody>
</table>
<h2 id="浏览器兼容性">浏览器兼容性</h2>
<p>{{Compat("api.Notification.image")}}</p>
<h2 id="参见">参见</h2>
<ul>
<li><a href="/en-US/docs/Web/API/Notifications_API/Using_the_Notifications_API">使用Notifications API</a></li>
</ul>
|