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

ajax请求体为空时req.data应该为空字符串? #2

Open
heimonsy opened this issue Feb 19, 2016 · 1 comment
Open

ajax请求体为空时req.data应该为空字符串? #2

heimonsy opened this issue Feb 19, 2016 · 1 comment

Comments

@heimonsy
Copy link

RT,现在的结果是req.data为null。

@YanagiEiichi
Copy link
Owner

这个并没有规范。。xhr.send 方法不仅可以接收字符串,还可以接收 FormData 之类的对象,它的参数类型是不固定的。如果没传入参数应该是 undefined 比较合理。。

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

2 participants