var xhr = new plus.net.XMLHttpRequest();
// xhr.responseType = 'blob';
xhr.setRequestHeader('Content-Type', "application/blob; charset=utf-8");
xhr.open( "GET", "url" );
xhr.send();
console.log(xhr.responseType)
xhr.onload = function(){
// xhr请求成功事件处理
console.log(xhr.response)
};
```javascript
设置xhr.responseType = 'blob';和不设置没有区别
xhr.response输出为null xhr.responseText输出为乱码

2***@qq.com
- 发布:2019-09-02 10:50
- 更新:2019-11-25 14:42
- 阅读:1002
1 个回复
2***@qq.com
解决了吗?