Esta tradução está incompleta. Por favor, ajude a traduzir este artigo.
Deprecated
This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Avoid using it and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.
escape
. Porque a função 'unescape' está obsoleta, ao invez disso, use decodeURI
ou decodeURIComponent
.unescape
para decodificar URIs, use decodeURI
ao invez disso.Syntax
unescape(str)
Parâmetros
str
- Uma string a ser decodificada.
Valor retornado
Uma nova string na qual alguns caracteres tem que ser 'unescaped'.
Descrição
A função unescape
é uma propriedade do objeto global.
Exemplos
unescape('abc123'); // "abc123" unescape('%E4%F6%FC'); // "äöü" unescape('%u0107'); // "ć"
Specifications
Specification | Status | Comment |
---|---|---|
ECMAScript 1st Edition (ECMA-262) The definition of 'unescape' in that specification. |
Padrão | Definição Inicial. |
ECMAScript 5.1 (ECMA-262) The definition of 'unescape' in that specification. |
Padrão | Definido na compatibilidade Annex B |
ECMAScript 2015 (6th Edition, ECMA-262) The definition of 'unescape' in that specification. |
Padrão | Difinito na (normativa) Annex B Para novidades adicionais do ECMAScript para browsers |
ECMAScript Latest Draft (ECMA-262) The definition of 'unescape' in that specification. |
Rascunho | Difinito na (normativa) Annex B Para novidades adicionais do ECMAScript para browsers |
Compatibilidades dos browsers
We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!
Novidades | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Suporte básico | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) |
Novidades | Android | Chrome for Android | Edge | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|---|
Suporte básico | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) |