http服务端在把json串写入http.ResponseWriter对象的时候我们常用的方式如下:
//方法一:
func ...(w http.ResponseWriter, r *http.Request) {
s,_:=json.Marshal(userinfo)
fmt.Fprint(w,string(s))
}
//方法二:
func ...(w http.ResponseWriter, r *http.Request) {
s,_:=json.Marshal(userinfo)
w.Write(s)
}
里面出现了一个问题,方法一再使用的时候如果存在%号,responsebody出现了

方法二则正常
因此推敲出若果存在内置的方法,请务必使用内置的方法,以免引起未知的问题