在方法内补上 header ('content-type:application: json ;charset=utf8'); header('Access-Control-Allow-Origin:*'); header('Access-Control-Allow-Methods:POST'); header('Access-Control-Allow-Headers:x-requested-with,content-type');
文章来源:智云一二三科技
文章标题:Ajax跨域服务端php处理
文章地址:https://www.zhihuclub.com/150999.shtml