<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="js/vue.js"></script>
<script src="js/axios.min.js"></script>
<script>
window.onload=function(){
new Vue({
el:'#itany',
methods:{
send(){
axios({
method:'get',
url:'/VUE/day02/user.josn',
data:{
firstName: 'Fred',
lastName: 'Flintstone'
}
}).then(function(resp){
console.log(resp);
}).catch(function(resp){
console.log();
如何解决Vue axios请求,浏览器跨域问题
最新推荐文章于 2024-04-19 10:18:52 发布