在需要用的页面通过import axios(自定义名字) from 'axios'进行引入
var api="地址"; axios.get(api).then(function (response) { console.log(response); }).catch(function (error) { console.log(error); }).then(function () { console.log("执行"); }); //也可以像ajax那样,这样子写 axios({ method:'get', url:api, }).then(function(response) { console.log(response); });
如对本文有疑问, 点击进行留言回复!!
深入理解CSS background-blend-mode的作用机制
网友评论