Several types of responseType

Response responseType
xhr.response data type
responseType value xhr.response data type description

responseType value xhr.response data type illustrate
" " String string Default value (when responseType is not set)
text String string
document Document object Use when you want to return data in XML format
json javascript object There is a compatibility problem, IE10/IE11 does not support
blob Blob object
arrayBuffer ArrayBuffer object

Guess you like

Origin blog.csdn.net/weixin_44162077/article/details/128558250