美文网首页
application/x-www-form-urlencode

application/x-www-form-urlencode

作者: DSuperLu | 来源:发表于2020-10-19 19:21 被阅读0次

    application/x-www-form-urlencoded

    image.png
                if (data instanceof FormData) {
                    axiosConfig.data = data;
                } else {
                    const formData = new FormData();
                    for (const key of Object.keys(data)) {
                        formData.append(key, data[key]);
                    }
                    axiosConfig.data = formData;
                }
    

    application/json

    axiosConfig.data = data;
    

    相关文章

      网友评论

          本文标题:application/x-www-form-urlencode

          本文链接:https://www.haomeiwen.com/subject/tidlmktx.html