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

gauhar's blog #2

Open
GauharChan opened this issue Sep 3, 2019 · 1 comment
Open

gauhar's blog #2

GauharChan opened this issue Sep 3, 2019 · 1 comment

Comments

@GauharChan
Copy link
Owner

https://gauhar.gitee.io/2019/09/02/%E9%82%A3%E4%BA%9B%E5%9D%91/

Axios axios 中,默认把请求头和响应头设置为application/json;charset=UTF-8 所以这个时候在node中使用bodyParser 的req.body获取的时候会得不到请求的数据。 两种解决方式:前端解决方法: 使用URLSearchParams对象 注意:IE浏览器不支持 1234567891011121314getPage() { let

@GauharChan
Copy link
Owner Author

早起的鸟儿

饿死

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

No branches or pull requests

1 participant