aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/window/unescape/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ja/web/api/window/unescape/index.html')
-rw-r--r--files/ja/web/api/window/unescape/index.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/files/ja/web/api/window/unescape/index.html b/files/ja/web/api/window/unescape/index.html
new file mode 100644
index 0000000000..501592c3d2
--- /dev/null
+++ b/files/ja/web/api/window/unescape/index.html
@@ -0,0 +1,33 @@
+---
+title: window.unescape
+slug: Web/API/Window/unescape
+tags:
+ - DOM
+ - DOM_0
+ - Gecko
+ - Gecko DOM Reference
+ - Window
+translation_of: Web/JavaScript/Reference/Global_Objects/unescape
+---
+<div>
+ {{ApiRef}}</div>
+<h2 id="Summary" name="Summary">概要</h2>
+<p>16 進でエンコードされた値(例えば、クッキー)をデコードします。</p>
+<h2 id="Syntax" name="Syntax">構文</h2>
+<pre class="syntaxbox"><var>regular</var> = window.unescape(<i>escaped</i>)</pre>
+<ul>
+ <li><code>regular</code> : 通常の文字列</li>
+ <li><code>encoded</code> : エンコードされた文字列</li>
+</ul>
+<h2 id="Example" name="Example">例</h2>
+<pre class="brush:js">alert( unescape("%5C") ); // 表示結果: "\"
+
+alert( unescape("https%3A//developer.mozilla.org") ); // 表示結果: "https://developer.mozilla.org"
+</pre>
+<h2 id="Specification" name="Specification">仕様</h2>
+<p>{{DOM0}} 但し、ECMA-262 の非標準化セクションで言及されています。</p>
+<h2 id="See_also" name="See_also">関連情報</h2>
+<ul>
+ <li>{{domxref("window.escape")}}</li>
+ <li><a href="/ja/docs/JavaScript/Reference/Global_Functions/encodeURIComponent"><code>decodeURIComponent</code></a></li>
+</ul>