Skip to content

使用vue-axios和vue-resource解决vue中调用网易云接口跨域的问题

Notifications You must be signed in to change notification settings

pandoraxm/vue_axios_resource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

使用vue-axios和vue-resource解决vue中调用网易云接口跨域的问题

使用方法

git clone https://github.com/pandoraxm/vue_axios_resource.git
cd axios_resource
cnpm install

运行

cnpm run dev

远程代理

详情请看Hello.vue

利用php curl代理

页面请求请看Curl.vue php curl部分请看curl.php

node代理

设置请看config/index.js里的proxyTable: {}部分 页面请求代码请看Node.vue

如果要运行curl代理的话,请将curl.php放到你Apache或者Nginx服务器根目录,并且保证你的Apache或者Nginx服务器是运行状态

详细说明,请看readme.html

Stargazers over time

Stargazers over time

About

使用vue-axios和vue-resource解决vue中调用网易云接口跨域的问题

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published