这是我的代码在角度的post方法中发送数组
var postData:string[] = ['1231230','112312321'];
return this.http.post(config.END_POINT,postData, {
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
Accept: 'application/json'
}
,
withCredentials: true
});
如何获取后期数据
if(isset($_POST) && !empty($_POST))
{
//parsing here.
}