VUE解决 No 'Access-Control-Allow-Origin' header is present on the requested resource 问题

get_list: function() {
	this.$http.jsonp('http://localhost/fdsfsd/index.php?s=/Home/Index/get_list', {}, {
		headers: {},
		emulateJSON: true
	}).then((response) => {
					
		//处理数据			
					
       });
}


猜你喜欢

转载自blog.csdn.net/qq_34410710/article/details/80915683