blob: 86c16d8da1af25f6fca97bb00958574bd5ec992c (
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
47
48
|
---
title: developer
slug: Mozilla/Add-ons/WebExtensions/manifest.json/developer
tags:
- Developer
translation_of: Mozilla/Add-ons/WebExtensions/manifest.json/developer
---
<div>{{AddonSidebar}}</div>
<table class="fullwidth-table standard-table">
<tbody>
<tr>
<th scope="row" style="width: 30%;">值类型</th>
<td><code>对象</code></td>
</tr>
<tr>
<th scope="row">强制性</th>
<td>非强制</td>
</tr>
<tr>
<th scope="row">示例</th>
<td>
<pre class="brush: json">
"developer": {
"name": "Walt Whitman",
"url": "https://en.wikipedia.org/wiki/Walt_Whitman"
}</pre>
</td>
</tr>
</tbody>
</table>
<p>插件开发者的名字和主页地址,用于显示在浏览器的用户界面中。</p>
<p>该对象的两个属性都是可选的。如果存在“name”和“url”属性,将会分别覆盖<a href="https://developer.mozilla.org/en-US/Add-ons/WebExtensions/manifest.json/author">author</a>和<a href="https://developer.mozilla.org/en-US/Add-ons/WebExtensions/manifest.json/homepage_url">homepage_url</a>键。这个对象仅仅允许指定一个开发者名字的主页地址。</p>
<h2 id="示例">示例</h2>
<pre class="brush: json">"developer": {
"name": "Walt Whitman",
"url": "https://en.wikipedia.org/wiki/Walt_Whitman"
}</pre>
<h2 id="Browser_compatibility">Browser compatibility</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.developer")}}</p>
|