header("Access-Control-Allow-Origin:*");
header("Access-Control-Allow-Methods:GET,POST");
header('Access-Control-Allow-Headers:x-requested-with,content-type');
header("Content-Type: text/html; charset=utf-8");
四条代码,自己理解吧,万能方法!
转载 http://www.aeink.com/1472.html
评论前必须登录!
立即登录 注册