Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cool~ #1

Open
MJingv opened this issue Mar 19, 2018 · 0 comments
Open

cool~ #1

MJingv opened this issue Mar 19, 2018 · 0 comments

Comments

@MJingv
Copy link

MJingv commented Mar 19, 2018

你的blog“使用axios发送post请求,将JSON数据改为为form类型”
react也是设置 axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';吗? 怎么没有效果?

我知道了,传的对象转换成字符串了,需要用qs转换成对象发送才行

为什么qs.stringify就可以呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant