blob: 06b7cf130bf11141fe9127f7a5519ed4ed07ccbd (
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
|
---
title: Intl.DisplayNames
slug: Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames
translation_of: Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames
---
<p>{{JSRef}} <strong><code>Intl.DisplayNames</code></strong> 是一个对象构造器,它支持语言、区域和脚本显示名称的一致翻译。</p>
<h2 id="语法">语法</h2>
<pre><code>new Intl.DisplayNames([<var>locales</var>[, <var>options</var>]]) </code>
</pre>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>
<tr>
<th scope="col">规范版本</th>
<th scope="col">规范状态</th>
<th scope="col">注解</th>
</tr>
<tr>
<td><a href="https://tc39.es/proposal-intl-displaynames/#sec-intl-displaynames-constructor">Intl.DisplayNames Constructor</a></td>
<td>Stage 3</td>
<td></td>
</tr>
</tbody>
</table>
|