PHP服务器端跨域
header("Access-Control-Allow-Origin: *"); //允许所以网站跨域
header("Access-Control-Allow-Origin: qq.com"); //允许部分网站跨域
header("Access-Control-Allow-Methods:POST,GET"); //允许接口请求方式
header("Access-Control-Allow-Headers:x-requested-with,content-type");
header("Content-type:text/json;charset=utf-8");