responseType几种类型

响应responseType
xhr.response的数据类型
responseType值 xhr.response 数据类型 说明

responseType值 xhr.response 数据类型 说明
" " String字符串 默认值(在不设置responseType时)
text String字符串
document Document对象 希望返回 XML 格式数据时使用
json javascript对象 存在兼容性问题,IE10/IE11不支持
blob Blob对象
arrayBuffer ArrayBuffer对象

猜你喜欢

转载自blog.csdn.net/weixin_44162077/article/details/128558250