decodeURI

概述

将先前经过encodeURI函数或者其他类似方法编码过的字符串进行解码.

Core Global Method
Implemented in JavaScript ?
ECMAScript Edition ECMAScript ?

语法

decodeURI(encodedURI)

参数

encodedURI
一个经过URL编码的字符串.

描述

将已编码字符串中所有能识别的转义序列转换成原字符,那些少数的encodeURI函数也不进行编码的字符(比如"/")对应的转义序列(比如"%2F")无法被解码,如果需要解码这些字符,应该使用decodeURIComponent.

相关链接

Document Tags and Contributors

Contributors to this page: ziyunfei
最后编辑者: ziyunfei,