responseText上的Javascript错误-1072896658

时间:2019-05-24 23:17:35

标签: javascript request

我正在尝试从API获取响应文本,但我无法: 我试图将响应字符集设置为: utf8,utf-8,UTF8,UTF-8以及许多其他...

http.Open("POST", url, async);
http.SetRequestHeader("Content-Type", "multipart/form-data; charset=utf-8; boundary=" + STR_BOUNDARY);
http.SetRequestHeader("Accept", "application/json; charset=utf-8");
http.SetRequestHeader("Accept-Charset", "utf-8");

http.Send(data)

http.responseBody

???????????????????????????????????????}

http.responseText

system Error: -1072896658.

http.statusText

"OK"

图片-> https://i.stack.imgur.com/0Lqbf.png

0 个答案:

没有答案