url 编码 转码 (记录)

308 阅读1分钟

1、encodeURI编码 --- decodeURI转码

encodeURI链接 decodeURI链接

2、encodeURIComponent编码 --- decodeURIComponent转码

encodeURIComponent编码 decodeURIComponent转码

备注:const url = 'https://www.baidu.com?a=1&b=hanzi&c=汉字';