PHP完全自学手册(珍藏版) 中文pdf扫描版下载
header('Access-Control-Allow-Origin: *');
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");
header('Access-Control-Allow-Methods: GET, POST, PUT,DELETE');
echo json_encode(array('status'=>1,'data'=>file_get_contents("php://input")));转载请注明:谷谷点程序 » php跨域导致前后端数据传输不成功的解决方法