fix
This commit is contained in:
+18
-1
@@ -181,17 +181,34 @@ define('ajax', [], function () {
|
||||
this.xhr = xhr;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
* @return {string}
|
||||
*/
|
||||
getResponseHeader(name) {
|
||||
return this.xhr.getResponseHeader(name);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {Number}
|
||||
*/
|
||||
getStatus() {
|
||||
return this.xhr.status;
|
||||
}
|
||||
|
||||
getParsedBody() {
|
||||
/**
|
||||
* @return {*}
|
||||
*/
|
||||
getResponseParsedBody() {
|
||||
return this.xhr.responseJSON;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {string}
|
||||
*/
|
||||
getResponseBody() {
|
||||
return this.xhr.responseText;
|
||||
}
|
||||
}
|
||||
|
||||
return Ajax;
|
||||
|
||||
Reference in New Issue
Block a user