diff options
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/escape/index.html')
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/escape/index.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/escape/index.html b/files/zh-cn/web/javascript/reference/global_objects/escape/index.html index 72fd5e66e2..dc558d27bd 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/escape/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/escape/index.html @@ -9,22 +9,22 @@ translation_of: Web/JavaScript/Reference/Global_Objects/escape </div> </div> -<h2 id="Summary" name="Summary">概览</h2> +<h2 id="Summary">概览</h2> <p>废弃的 <code><strong>escape()</strong></code> 方法生成新的由十六进制转义序列替换的字符串. 使用 {{jsxref("Global_Objects/encodeURI", "encodeURI")}} 或 {{jsxref("Global_Objects/encodeURIComponent", "encodeURIComponent")}} 代替.</p> -<h2 id="Syntax" name="Syntax">语法</h2> +<h2 id="Syntax">语法</h2> <pre class="syntaxbox"><code>escape(str)</code></pre> -<h3 id="Parameters" name="Parameters">参数</h3> +<h3 id="Parameters">参数</h3> <dl> <dt><code>str</code></dt> <dd>待编码的字符串.</dd> </dl> -<h2 id="Description" name="Description">描述</h2> +<h2 id="Description">描述</h2> <p><code>escape</code> 函数是全局对象的属性. 特色字符如: @*_+-./ 被排除在外.</p> @@ -118,7 +118,7 @@ escape("@*_+-./"); // "@*_+-./"</pre> </table> </div> -<h2 id="See_Also" name="See_Also">其他链接</h2> +<h2 id="See_Also">其他链接</h2> <ul> <li>{{jsxref("Global_Objects/encodeURI", "encodeURI")}}</li> |