Skip to content

Instantly share code, notes, and snippets.

@takahashi-h5
Created May 26, 2019 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takahashi-h5/f8651596badbc9aca79b6f1a6a0c395d to your computer and use it in GitHub Desktop.
Save takahashi-h5/f8651596badbc9aca79b6f1a6a0c395d to your computer and use it in GitHub Desktop.
axios.get
<!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