淘先锋技术网

首页 1 2 3 4 5 6 7
var urlStr string = "https://www.baidu.com"
escapeUrl := url.QueryEscape(urlStr)
fmt.Println("编码:",escapeUrl)

enEscapeUrl, _ := url.QueryUnescape(escapeUrl)
fmt.Println("解码:",enEscapeUrl)