我正在将ng 4迁移到ng 5,并面对
仅举一个例子,我想将此方法移至ng5
getRequestOptions(): RequestOptionsArgs {
const options = new RequestOptions();
options.headers = new Headers({
'Content-Type': 'application/json',
'X-Requested-With': 'XMLHttpRequest',
});
const searchParams = new URLSearchParams();
options.search = searchParams;
return options;
}
第一个问题: 角度5中的RequestOptionsArgs类似于什么?