-
-
Save takahashi-h5/f8651596badbc9aca79b6f1a6a0c395d to your computer and use it in GitHub Desktop.
axios.get
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8" /> | |
<script src="https://unpkg.com/axios/dist/axios.min.js"></script> | |
<title>axiosjs</title> | |
</head> | |
<body> | |
<script> | |
axios.get("http://uperworld.com/axiosjs/data.json") | |
.then(ret => alert(ret.data)); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment