-
-
Save takahashi-h5/7baa541bd34f9a9ca5682c8486276dd7 to your computer and use it in GitHub Desktop.
axios.post
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> | |
var params = new URLSearchParams(); | |
params.append('id', 100); | |
params.append('name', 'takahashi'); | |
axios.post("https://uperworld.com/axiosjs/post01.php", params) | |
.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