Skip to content

Instantly share code, notes, and snippets.

@takahashi-h5

takahashi-h5/index.html Secret

Created May 27, 2019
Embed
What would you like to do?
axios.post
<!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