我正在用php做一个游戏面板,我需要从我一直在读的json api中读取,我需要在json api中获取被禁止的值。$test;$api = json_decode($json);
echo $api->banned; 运行此命令后,我收到通知:Undefined property: stdClass::$banned in C:\xampp\htdocs\test.php on line 14
对api的ajax post是成功的,但我无法将响应发送到另一个文件(saveImgURL.php),该文件将从已发送的'data‘变量中获取URL并将其保存在数据库中。document.write(data); // displays the correct API response in current doc
$.post( "saveImgURL.php