返回一個(gè)已編碼的統(tǒng)一資源標(biāo)識(shí)符 (URI) 的非編碼形式。
decodeURI(URIstring)
必要的 URIstring 參數(shù)代表一個(gè)已編碼 URI 的值。
使用 decodeURI 方法代替已經(jīng)過(guò)時(shí)的 unescape 方法。
decodeURI 方法返回一個(gè)字符串值。
如果 URIString 無(wú)效,那么將產(chǎn)生一個(gè) URIError。
decodeURIComponent 方法 | encodeURI 方法
應(yīng)用于:Global 對(duì)象