/* axios({
methods: “get”,
url:“http://yapi.smart-xwork.cn/mock/169327/emp/list”
}).then (resp=>{
console.log(resp.data);
}
) */
axios.get(“http://yapi.smart-xwork.cn/mock/169327/emp/list”)
resp=>{
console.log(resp.data)
}
}
function post(){
/* axios({
method:“post”,
url:“http://yapi.smart-xwork.cn/mock/169327/emp/deleteById”
}).then(
function(resp){
console.log(resp.data)
}
)
*/
axios.post(“http://yapi.smart-xwork.cn/mock/169327/emp/deleteById”,“id=1”).then(
resp=>{
console.log(resp.data);
}
)
}