decodeURIComponent decodeURIComponent()方法用于解码由encodeURIComponent方法或者其它类似方法编码的部分统一资源标识符(URI)。
给任一个参数decodeURI,encodeURI,encodeURIComponent,或decodeURIComponent功能是无效的,因此该功能无法编码或解码正常。
Options对象可能包含decodeURIComponent属性(默认:querystring.unescape),如果需要,可以用来解码non-utf8编码的字符串。
因为unescape 已经废弃,建议使用decodeURI或者decodeURIComponent替代本方法。 注意:不要使用unescape去解码URLS,使用decodeURI替代。

扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2026 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059
粤公网安备44030502008569号
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号
