diff options
Diffstat (limited to 'axios/test/manual/basic.html')
-rw-r--r-- | axios/test/manual/basic.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/axios/test/manual/basic.html b/axios/test/manual/basic.html new file mode 100644 index 0000000..35fa649 --- /dev/null +++ b/axios/test/manual/basic.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> +</head> +<body> + +An alert should be shown with the <code>{"name":"axios"}</code> + +<script src="promise.js"></script> +<script src="../../dist/axios.js"></script> +<script> + axios.get('./fixture.json').then(function(response) { + console.log(response); + alert(JSON.stringify(response.data)); + alert('response headers:\n\n' + JSON.stringify(response.headers)); + }, function(err) { console.log(err) }); +</script> + +</body> +</html>
\ No newline at end of file |