语法高亮,滚动条美化,设置页面调整

This commit is contained in:
fofolee
2019-04-19 02:41:09 +08:00
parent 1e8f76c000
commit 359d29ee0b
1590 changed files with 12328 additions and 11441 deletions

View File

@@ -4,7 +4,7 @@
<div><iframe class="interactive interactive-js" frameborder="0" height="250" src="https://interactive-examples.mdn.mozilla.net/pages/js/intl-getcanonicallocales.html" width="100%"></iframe></div>
<p class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a class="external" href="https://github.com/mdn/interactive-examples" rel="noopener">https://github.com/mdn/interactive-examples</a> and send us a pull request.</p>
<h2 id="Syntax">Syntax</h2>
<pre class="syntaxbox">Intl.getCanonicalLocales(locales)</pre>
<pre><code class="language-javascript">Intl.getCanonicalLocales(locales)</code></pre>
<h3 id="参数">参数</h3>
<dl>
<dt><code>locales</code></dt>
@@ -13,12 +13,12 @@
<h3 id="Return_value">Return value</h3>
<p>一个包含规范区域语言代码的数组。</p>
<h2 id="例子">例子</h2>
<pre class="brush: js">Intl.getCanonicalLocales('EN-US'); // ["en-US"]
<pre><code class="language-javascript">Intl.getCanonicalLocales('EN-US'); // ["en-US"]
Intl.getCanonicalLocales(['EN-US', 'Fr']); // ["en-US", "fr"]
Intl.getCanonicalLocales('EN_US');
// RangeError:'EN_US' is not a structurally valid language tag
</pre>
</code></pre>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>