PHP7中文手册2018 带注释 最新chm版
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跨域导致前后端数据传输不成功的解决方法