import ( "fmt" "net/url" )
func main() { urlStr := "liu ##ji kj" escapeUrl := url.QueryEscape(urlStr) fmt.Println(escapeUrl) }
put: liu+%23%23ji++kj
本文来自博客园,作者:别吃韩信中线,转载请注明原文链接:https://www.cnblogs.com/liuzhiyu/p/17005834.html