x-www-form-urlencoded encodeURIComponent

发布于 7 年前作者 guiyingzhao8583 次浏览最后编辑 7 年前来自 ask

文档里说

  • 对于 POST 方法且 header['content-type'] 为 application/x-www-form-urlencoded 的数据,会将数据转换成 query string (encodeURIComponent(k)=encodeURIComponent(v)&encodeURIComponent(k)=encodeURIComponent(v)...)

那么header[‘content-type’] 为 application/x-www-form-urlencoded;charset=utf-8的时候是否也会调用encodeURIComponent呢?


0 回复
暂无回复