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

对 XMLHttpRequest.responseType 属性的描述有误 #211

Closed
will-wyx opened this issue Jan 13, 2021 · 1 comment
Closed

对 XMLHttpRequest.responseType 属性的描述有误 #211

will-wyx opened this issue Jan 13, 2021 · 1 comment

Comments

@will-wyx
Copy link

本教程中,“浏览器模型->XMLHttpRequest 对象” 章节

其中对 XMLHttpRequest.responseType 属性的描述为 “...这个属性是可写的,可以在调用open()方法之后、调用send()方法之前,设置这个属性的值,告诉服务器返回指定类型的数据。...”,而在MDN关于 XMLHttpRequest.responseType 的说明中没有指出该属性值会通知到服务器。

并且通过测试发现,responseType 值并没有包含在请求内容中。个人觉得该属性不是告诉服务器返回什么类型,而是告诉ajax客户端以何种类型处理响应内容。

@ruanyf ruanyf closed this as completed in 51a586c Jan 14, 2021
@ruanyf
Copy link
Contributor

ruanyf commented Jan 14, 2021

谢谢指出,已经改正。

@ruanyf ruanyf reopened this Jan 14, 2021
@ruanyf ruanyf closed this as completed Jan 14, 2021
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