一、一個json
const headers = new Headers({
'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8',
'Accept': '*!/'
});
const params = 'username=' + data.username + '&password=' + data.password + '&key=' + data.key + '&verifyCode=' + data.verifyCode;
return this.ht.post(`${this.config.urlauth}/login`, params, {headers: headers}).map(value => value);
|
二、多個app
httpOptions = { |
三、HttpHeadersthis
const headers = new HttpHeaders({
'Content-Type': 'application/json'
});
const url= ``;
return this.http.post(url,null,{headers: headers}).pipe(
map(res=>res)
)
|