aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/mozilla/add-ons/webextensions/manifest.json/manifest_version/index.html
blob: 9d67a37b894b6f6a0ecbe87545c27681d018bf86 (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
---
title: manifest_version
slug: Mozilla/Add-ons/WebExtensions/manifest.json/manifest_version
tags:
  - WebExtensions
  - 拓展
  - 附加组件
translation_of: Mozilla/Add-ons/WebExtensions/manifest.json/manifest_version
---
<p>{{AddonSidebar}}</p>

<table class="fullwidth-table standard-table">
 <tbody>
  <tr>
   <th scope="row" style="width: 30%;">值类型</th>
   <td><code>Number</code></td>
  </tr>
  <tr>
   <th scope="row">强制性</th>
   <td>强制</td>
  </tr>
  <tr>
   <th scope="row">示例</th>
   <td>
    <pre class="brush: json">
"manifest_version": 2</pre>
   </td>
  </tr>
 </tbody>
</table>

<p>此键指定扩展使用的 manifest.json 的版本。</p>

<p>目前,此值必须为 2。</p>

<h2 id="示例">示例</h2>

<pre class="brush: json">"manifest_version": 2
</pre>

<h2 id="浏览器兼容性">浏览器兼容性</h2>

<p class="hidden">The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</p>

<p>{{Compat("webextensions.manifest.manifest_version")}}</p>