1php2 header('Content-Type : application/json'); 3 4 $result=file_get_contents( '跨域的地址' );5 6 echo $result;7> 在页面使用XMLHTTPRequest发送请求,可以获取php后台返回出去的跨域的数据
来源: http://www.bubuko.com/infodetail-1959841.html