【发布时间】:2019-07-23 13:07:17
【问题描述】:
ionic4 中类型“HttpClient”.ts(2339) 上不存在属性“post”
onFormSubmit() {
let data = 'CardNo=' + '25498' + '&Password=' + '123' + '&DeviceId=' + 'njfngjfg' + '&DeviceType=' + 'android';
this.onFormSubmit = this.http.post('http://dashboard.doit.aw:8081/doit_copy/user2/login', data,
{
headers: {
//'content':"application/json",
//'content-type':"application/x-www-form-urlencoded"
'Doittoken': "TVRJek5EVWhRQ01r"
}
});
return this.onFormSubmit;
}
post 方法出错
【问题讨论】:
标签: ionic4