函数原型

func urlencode(v1 string/bytes) string

参数介绍

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

举例

待转换数据转换语句输出结果
http://example.com?a=burlencode("http://example.com?a=b")http%3A%2F%2Fexample.com%3Fa%3Db
YGVjaG8gemZpaSA+IHZyZHoudHh0YA==urlencode("YGVjaG8gemZpaSA+IHZyZHoudHh0YA==")YGVjaG8gemZpaSA%2BIHZyZHoudHh0YA%3D%3D
b"http://example.com?a=b"urlencode(b"http://example.com?a=b")http%3A%2F%2Fexample.com%3Fa%3Db

Was this page helpful?