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

Node使用axios传FormData格式参数 #108

Open
lizhongzhen11 opened this issue May 6, 2021 · 0 comments
Open

Node使用axios传FormData格式参数 #108

lizhongzhen11 opened this issue May 6, 2021 · 0 comments

Comments

@lizhongzhen11
Copy link
Owner

https://www.jianshu.com/p/b10454ed38ba

同事有个服务POST方法下只接受FormData格式参数,之前在vue项目中用过,这次在node服务中也要继续用下,代码复制过来死活不行,搞了半天,才发现node下默认不是 FormData,而是 Stream,尴尬了,只能改下。

http://www.axios-js.com/zh-cn/docs/#%E8%AF%B7%E6%B1%82%E9%85%8D%E7%BD%AE 下的 data 说明

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