第一个参数是url,第二个参数是body,body为object,如果body为空的时候,参数填{}; this.http.post('url' + id, {}) .subscribe(res => { }, error => { })