更新时间:2023-12-06 16:45:16
您可以改用 HttpClient 类上的通用 request
方法.此方法在选项中具有主体.https://angular.io/api/common/http/HttpClient#members
例如this.http.request('delete', 'url', { body: ... })
You may use a universal request
method on the HttpClient class instead. This method has the body in options.
https://angular.io/api/common/http/HttpClient#members
e.g
this.http.request('delete', 'url', { body: ... })