格式如下: %7B%22trade%22:%7B%22num%22:1,%22goods_kind%22:1 请问这属于编码问题吗。
更多评论
就是{"trade":{"num":1,"goods_kind":1 我是想知道怎么从 %7B%22trade%22:%7B%22num%22:1,%22goods_kind%22:1转换成 {"trade":{"num":1,"goods_kind":1
package main
import(
"fmt"
"net/url"
)
func main(){
txt, _ := url.QueryUnescape(` %7B%22trade%22:%7B%22num%22:1,%22goods_kind%22:1`)
fmt.Println(txt)
}