<br /> <b>Deprecated</b>: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in <b>Unknown</b> on line <b>0</b><br /> <br /> <b>Warning</b>: Cannot modify header information - headers already sent in <b>Unknown</b> on line <b>0</b> <br /> {"status":1,"data":[{"events":"eventName"},{"events":"index"}]}
引发这个问题的原因是:ajax请求时post的数据为空:
$.ajax({ url:oper.dataUri, async:true, type:'post', data:'', success:function(data,status){ if(status === 'success'){ console.log(data); } } ......