JavaScript的decodeURIComponent
JavaScript的decodeURIComponent函数是返回统一资源标识符 (URI) 的一个已编码组件的非编码形式。
使用方法是:
decodeURIComponent
(encodedURIString)http://www.120hrb.com
其中必选的 encodedURIString 参数代表一个已编码的 URI 组件。URIComponent 是一个完整的 URI 的一部分。 如果 encodedURIString 无效,将产生一个 URIError。