函数原型

func urldecode(v1 string/bytes) string

参数介绍

参数名称参数介绍
v1待转换数据

举例

待转换数据转换语句输出结果
http:%2F%2Fexample.com%3Fa=burldecode("http:%2F%2Fexample.com%3Fa=b")http://example.com?a=b
b"%68%74%74%70%3A%2F%2F%65%78%61%6D%70%6C%65%2E%63%6F%6D%3F%61%3D%62"urldecode(b"%68%74%74%70%3A%2F%2F%65%78%61%6D%70%6C%65%2E%63%6F%6D%3F%61%3D%62")http://example.com?a=b

Was this page helpful?