JavaScript kod çözmeURI()
❮
Küresel Yöntemleri
❯
Örnek
Bir URI'yi kodladıktan sonra kodunu çözün:
let uri = "my test.asp?name=ståle&car=saab";
let encoded = encodeURI(uri);
let decoded = decodeURI(encoded);
Tanım ve Kullanım
Yöntem bir decodeURI()
URI'nin kodunu çözer .
Not
Bir URI'yi kodlamak için encodeURI() yöntemini kullanın
Ayrıca bakınız:
Bir URI'yi kodlamak için encodeURIComponent() yöntemi
Bir URI'nin kodunu çözmek için decodeURIComponent() yöntemi
Sözdizimi
decodeURI(uri)
parametreler
Parameter | Description |
uri | Required. The URI to decode. |
Geri dönüş değeri
Tip | Açıklama |
Dizi | Kodu çözülen URI. |
Tarayıcı Desteği
decodeURI()
bir ECMAScript1 (ES1) özelliğidir.
ES1 (JavaScript 1997) tüm tarayıcılarda tam olarak desteklenir:
Chrome | IE | Edge | Firefox | Safari | Opera |
Yes | Yes | Yes | Yes | Yes | Yes |
❮
Küresel Yöntemleri
❯