Commit da61dbb5 authored by Allen Bai's avatar Allen Bai

feat: 修改responseType

parent 4daf5a06
......@@ -16,7 +16,7 @@ function request(option) {
}
var xhr = new XMLHttpRequest()
xhr.responseType = option.responseType || 'json'
xhr.responseType = option.responseType || 'plain'
xhr.onreadystatechange = function () {
if (xhr.readyState === 4) {
if (xhr.status === 200) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment