1.0.0 • Published 2 years ago
iceberg_axios v1.0.0
安装
npm install iceberg_axios
导入
const iceberg_axios = require('iceberg_axios')
方法
//默认get传参
axios({
url: "http://127.0.0.1:8080/api/get?A=2"
}).then((res) => {
console.log(res)
})
//get传参
axios.get("http://127.0.0.1:8080/api/get?A=1").then((res) => {
console.log(res)
})
//post传参
axios.post("http://127.0.0.1:8080/api/post", {data:{a:1,b:1,c:1}}).then((res) => {
console.log(res)
})
1.0.0
2 years ago