我正在尝试调用函数到api调用。到目前为止,我已经做了以下的逻辑,但它不起作用。
代码
changeStatus(id) {
this.http.post('https://localhost:44300/api/apis/ChangeStatus/' + id, "")
.subscribe(
data => {
this._data = data.json(),
this.getAllUser();
},
err => this.logError(err)
);
}
}发布于 2016-07-12 09:42:26
这是一个简单的错误--只需在,之后用;替换data.json()即可。
https://stackoverflow.com/questions/38325015
复制相似问题