mirror of
https://github.com/tenrok/axios.git
synced 2026-06-14 18:42:33 +03:00
Improving the response API
This commit is contained in:
+4
-4
@@ -131,11 +131,11 @@
|
||||
request.innerHTML = JSON.stringify(options, null, 2);
|
||||
|
||||
axios(options)
|
||||
.success(function (res) {
|
||||
response.innerHTML = JSON.stringify(res.data, null, 2);
|
||||
.success(function (data) {
|
||||
response.innerHTML = JSON.stringify(data, null, 2);
|
||||
})
|
||||
.error(function (res) {
|
||||
response.innerHTML = JSON.stringify(res.data, null, 2);
|
||||
.error(function (data) {
|
||||
response.innerHTML = JSON.stringify(data, null, 2);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user