<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
body {
font-family: "Microsoft YaHei", serif;
}
body, dl, dd, p, h1, h2, h3, h4, h5, h6 {
margin: 0;
}
ol, ul, li {
margin: 0;
padding: 0;
list-style: none;
}
img {
border: none
}
</style>
</head>
<body>
<div id="wrap"></div>
<script src="https://cdn.bootcss.com/axios/0.19.2/axios.min.js"></script>
<script>
axios.get(
"qwe.com.cn",
{
params:{key:"value"}
}
).then(res=>{
console.log(res);
});
axios.post(
"qwe.com.cn",
{key:"value"}
).then(res=>{
console.log(res);
});
// 直接使用axios
// get传参,拼接到链接后边
// post传参,用data属性接受参数
axios({
method:"GET",
url:"qwe.com.cn",
// data:{}
}).then(res=>{
console.log(res); //数据
})
</script>
</body>
</html>
Python3Turtle