解碼用 escape 方法進(jìn)行了編碼的 String 對象。
unescape(charstring)
必選項(xiàng) charstring 參數(shù)是要解碼的 String 對象。
unescape 方法返回一個(gè)包含 charstring 內(nèi)容的字符串值。所有以 %xx 十六進(jìn)制形式編碼的字符都用 ASCII 字符集中等價(jià)的字符代替。
以 %uxxxx 格式(Unicode 字符)編碼的字符用十六進(jìn)制編碼 xxxx 的 Unicode 字符代替.
注意 unescape 方法不能用于解碼統(tǒng)一資源標(biāo)識碼 (URI)。解該碼可使用 decodeURI 和 decodeURIComponent 方法。
DecodeURI 方法 | decodeURIComponent 方法 | escape 方法 | String 對象
應(yīng)用于:Global 對象