亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

JavaScript decodeURIComponent() 函數(shù)

定義和用法

decodeURIComponent() 函數(shù)可對 encodeURIComponent() 函數(shù)編碼的 URI 進行解碼。

語法

decodeURIComponent(URIstring)
參數(shù) 描述
URIstring 必需。一個字符串,含有編碼 URI 組件或其他要解碼的文本。

返回值

URIstring 的副本,其中的十六進制轉義序列將被它們表示的字符替換。

實例

在本例中,我們將使用 decodeURIComponent() 對編碼后的 URI 進行解碼:

<script type="text/javascript">

var test1="http://chabaoo.cn/My first/"

document.write(encodeURIComponent(test1)+ "<br />")
document.write(decodeURIComponent(test1))

</script>

輸出:

http%3A%2F%2Fchabaoo.cn%2FMy%20first%2F
http://chabaoo.cn/My first/

TIY

decodeURIComponent()
如何使用 decodeURIComponent() 對編碼后的 URI 進行解碼。