Skip to content

Commit

Permalink
2022/07/08 時点の英語版に同期
Browse files Browse the repository at this point in the history
  • Loading branch information
mfuji09 authored and potappo committed Aug 20, 2022
1 parent 698f3ed commit 257430e
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions files/ja/web/javascript/reference/global_objects/unescape/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,26 @@ tags:
- Deprecated
- JavaScript
- Method
- Polyfill
browser-compat: javascript.builtins.unescape
translation_of: Web/JavaScript/Reference/Global_Objects/unescape
l10n:
sourceCommit: 1931ea17c117b5eafa315c638e70429e500bdca9
---
{{jsSidebar("Objects")}}

> **Warning:** 警告: `unescape()` は厳密には (「ウェブ標準から削除された」という意味では) 非推奨になっていませんが、 ECMA-262 標準の [Annex B](https://www.ecma-international.org/ecma-262/9.0/index.html#sec-additional-ecmascript-features-for-web-browsers) において定義されており、導入部で次のように位置付けられています。> … この附属書で規定されているすべての言語機能および動作は、1 つ以上の望ましくない特性を有しており、古い使用例がない場合には,この仕様から削除される。 …
> **Warning:** `unescape()` は厳密には (「ウェブ標準から削除された」という意味では) 非推奨になっていませんが、 ECMA-262 標準の [Annex B](https://tc39.es/ecma262/#sec-additional-ecmascript-features-for-web-browsers) において定義されており、導入部で次のように位置付けられています。
>
> > … この附属書で規定されているすべての言語機能および動作は、1 つ以上の望ましくない特性を有しており、古い使用例がない場合には,この仕様から削除される。 …
> > … プログラマーは、新しい ECMAScript コードを書く際に、これらの機能や動作の存在を利用したり、仮定したりしてはいけない。 …
**`unescape()`** 関数は 16 進数エスケープシーケンスを、それが表す文字列に置換します。エスケープシーケンスは {{jsxref("escape")}} などの関数によって生成されます。通常は {{jsxref("decodeURI")}} または {{jsxref("decodeURIComponent")}} が `unescape` よりも推奨されます。

> **Note:** **注 :** URI のデコードに `unescape` を使用しないでください。代わりに `decodeURI` を使用してください。
> **Note:** URI のデコードに `unescape` を使用しないでください。代わりに `decodeURI` を使用してください。
## 構文

```
```js
unescape(str)
```

Expand Down Expand Up @@ -48,16 +53,15 @@ unescape('%u0107'); // "ć"

## 仕様書

| 仕様書 |
| -------------------------------------------------------------------------------- |
| {{SpecName('ESDraft', '#sec-unescape-string', 'unescape')}} |
{{Specifications}}

## ブラウザーの互換性

{{Compat("javascript.builtins.unescape")}}
{{Compat}}

## 関連情報

- [`unescape` のポリフィル (`core-js`)](https://github.com/zloirock/core-js#ecmascript-string-and-regexp)
- {{jsxref("decodeURI")}}
- {{jsxref("decodeURIComponent")}}
- {{jsxref("escape")}}

0 comments on commit 257430e

Please sign in to comment.