introduce axios.js
methods:
send () {
axios({
method:"get",
url:""
}).then(function(resp){
console.log(resp);
}).catch(resp => {
console.log("");
});
},
console error No "Access-Control-Allow-Origin" header is present on the requested resource. Origin" http://xxx.com" is therefore not allowed access.
you can request
normally with jquery"s $.getJSON ().