<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<script src="axios.min.js"></script>
<script>
//第一种
// axios({
// url:"01-http.php?username=123400&password=12aaa",
// method:'get'
// }).then(function(res){
// console.log(res)
// });
//第二种
// axios.get('01-http.php?username=123aaa&password=12993').then(function(res){
// console.log(res)
// });
//第三种
// axios({
// url:"01-http.php",
// data:"username=aaabbb&password=12999",
// method:'post',
//
// }).then(function(res){
// console.log(res)
// })
//第四种
axios.post("01-http.php","username=bbbaaa&password=2999")
.then(function(res){
console.log(res)
})
</script>
</body>
</html>
36_axios请求
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。