aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/pushmanager/supportedcontentencodings/index.html
blob: 5b8540dd96ab8c374f12d5006769c6433b2c81ff (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
---
title: PushManager.supportedContentEncodings
slug: Web/API/PushManager/supportedContentEncodings
translation_of: Web/API/PushManager/supportedContentEncodings
---
<p>{{SeeCompatTable}}{{APIRef("Push API")}}</p>

<p>{{domxref("PushManager")}}的只读方法 <strong><code>supportedContentEncodings</code></strong> 返回一组支持内容编码,可以用在加密信息中发送的消息。</p>

<h2 id="语法">语法</h2>

<pre class="syntaxbox">var <em>encodings</em>[] = PushManager.<em>supportedContentEncodings</em></pre>

<h3 id="值"></h3>

<p>一个字符串数组</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('Push API','#dom-pushmanager-supportedcontentencodings','supportedContentEncodings')}}</td>
   <td>{{Spec2('Push API')}}</td>
   <td>最初的定义</td>
  </tr>
 </tbody>
</table>

<h2 id="支持的浏览器">支持的浏览器</h2>

<div>
<div>


<p>{{Compat("api.PushManager.supportedContentEncodings")}}</p>
</div>
</div>