函数原型

func urlencodeall(v1 string/bytes) string

参数介绍

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

举例

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

Was this page helpful?