mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-12-17 00:04:34 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<h2 id="Summary" name="Summary">概述</h2>
|
||||
<p><strong>normalize()</strong> 方法会按照指定的一种 Unicode 正规形式将当前字符串正规化.</p>
|
||||
<h2 id="Syntax" name="Syntax">语法</h2>
|
||||
<pre class="syntaxbox"><code class="brush:js;"><em>str</em>.normalize([form])</code>;</pre>
|
||||
<pre><code class="language-javascript"><code class="brush:js;"><em>str</em>.normalize([form])</code>;</code></pre>
|
||||
<h3 id="参数">参数</h3>
|
||||
<dl>
|
||||
<dt><code>form</code></dt>
|
||||
@@ -22,7 +22,7 @@
|
||||
<dd>如果给 <code>form</code> 传入了非法的参数值, 则会抛出 <span><code>RangeError</code> 异常.</span></dd>
|
||||
</dl>
|
||||
<h2 id="示例">示例</h2>
|
||||
<pre class="brush:js;">// Initial string
|
||||
<pre><code class="language-js;">// Initial string
|
||||
|
||||
// U+1E9B: LATIN SMALL LETTER LONG S WITH DOT ABOVE
|
||||
// U+0323: COMBINING DOT BELOW
|
||||
@@ -57,7 +57,7 @@ str.normalize("NFKC"); // "\u1E69"
|
||||
// U+0323: COMBINING DOT BELOW
|
||||
// U+0307: COMBINING DOT ABOVE
|
||||
str.normalize("NFKD"); // "\u0073\u0323\u0307"
|
||||
</pre>
|
||||
</code></pre>
|
||||
<h2 id="规范">规范</h2>
|
||||
<table class="standard-table">
|
||||
<tbody>
|
||||
|
||||
Reference in New Issue
Block a user