ajax和PHP接口交互时 用post方式会出错,get不会
跨域问题添加了:
header('Access-Control-Allow-Origin:*');
header('Access-Control-Allow-Methods:POST,GET,OPTIONS,DELETE');
header('Access-Control-Allow-Headers:x-requested-with,content-type,requesttype');
但是POST方法还是不行,这是为什么~~~郎朗坤